pub struct DiscoveryRunOptions {
pub local_addr: Option<SocketAddr>,
pub prefer_multicast: bool,
pub allow_broadcast: bool,
pub cache_first: bool,
pub cached_targets: Vec<SocketAddr>,
pub scan_subnets: bool,
pub scan_rate_per_sec: u32,
pub scan_timeout_ms: u64,
pub scan_max_hosts: u32,
pub attester_registry: Option<AttesterRegistry>,
}Fields§
§local_addr: Option<SocketAddr>§prefer_multicast: bool§allow_broadcast: bool§cache_first: bool§cached_targets: Vec<SocketAddr>§scan_subnets: bool§scan_rate_per_sec: u32§scan_timeout_ms: u64§scan_max_hosts: u32§attester_registry: Option<AttesterRegistry>Implementations§
Source§impl DiscoveryRunOptions
impl DiscoveryRunOptions
Sourcepub fn defaults_for_lan() -> Self
pub fn defaults_for_lan() -> Self
Sensible defaults for a typical LAN deployment (broadcast on, no subnet scan).
Sourcepub fn defaults_for_lab() -> Self
pub fn defaults_for_lab() -> Self
Defaults for lab environments (no multicast, cache-first probing).
Trait Implementations§
Source§impl Clone for DiscoveryRunOptions
impl Clone for DiscoveryRunOptions
Source§fn clone(&self) -> DiscoveryRunOptions
fn clone(&self) -> DiscoveryRunOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiscoveryRunOptions
impl Debug for DiscoveryRunOptions
Auto Trait Implementations§
impl Freeze for DiscoveryRunOptions
impl RefUnwindSafe for DiscoveryRunOptions
impl Send for DiscoveryRunOptions
impl Sync for DiscoveryRunOptions
impl Unpin for DiscoveryRunOptions
impl UnsafeUnpin for DiscoveryRunOptions
impl UnwindSafe for DiscoveryRunOptions
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