pub struct RelayDeviceOptions {
pub device: String,
pub platform: String,
pub token: String,
pub max_attempts: Option<usize>,
pub backoff: Duration,
}Expand description
Options for run_relay_device.
Fields§
§device: StringDevice id to register as (senders target it via --device).
platform: StringPlatform string (linux / macos / windows).
token: StringShared token for the relay register frame.
max_attempts: Option<usize>Stop after this many (re)connect attempts; None = run forever.
backoff: DurationDelay between reconnect attempts.
Trait Implementations§
Source§impl Clone for RelayDeviceOptions
impl Clone for RelayDeviceOptions
Source§fn clone(&self) -> RelayDeviceOptions
fn clone(&self) -> RelayDeviceOptions
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 RelayDeviceOptions
impl RefUnwindSafe for RelayDeviceOptions
impl Send for RelayDeviceOptions
impl Sync for RelayDeviceOptions
impl Unpin for RelayDeviceOptions
impl UnsafeUnpin for RelayDeviceOptions
impl UnwindSafe for RelayDeviceOptions
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