pub struct ReceiveOptions {
pub token: String,
pub max_commands: Option<usize>,
pub reconnect: bool,
pub backoff: Duration,
pub max_attempts: Option<usize>,
}Expand description
Options for receive_from_daemon.
Fields§
§token: StringShared daemon token. Empty is valid for a loopback/local-trust daemon.
max_commands: Option<usize>Number of commands to emit, or None to listen continuously.
reconnect: boolReconnect after disconnects and transient failures.
backoff: DurationDelay between reconnect attempts.
max_attempts: Option<usize>Optional attempt bound, primarily for embedded callers and tests.
Trait Implementations§
Source§impl Clone for ReceiveOptions
impl Clone for ReceiveOptions
Source§fn clone(&self) -> ReceiveOptions
fn clone(&self) -> ReceiveOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReceiveOptions
impl RefUnwindSafe for ReceiveOptions
impl Send for ReceiveOptions
impl Sync for ReceiveOptions
impl Unpin for ReceiveOptions
impl UnsafeUnpin for ReceiveOptions
impl UnwindSafe for ReceiveOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more