pub struct DiscoveryClientOptions {
pub remote_addr: SocketAddr,
pub local_addr: SocketAddr,
pub timeout: Duration,
pub prefer_multicast: bool,
pub allow_broadcast: bool,
pub interface: Option<String>,
pub attester_registry: Option<AttesterRegistry>,
}Expand description
Options used to configure the blocking discovery helper.
Fields§
§remote_addr: SocketAddr§local_addr: SocketAddr§timeout: Duration§prefer_multicast: bool§allow_broadcast: bool§interface: Option<String>§attester_registry: Option<AttesterRegistry>Implementations§
Source§impl DiscoveryClientOptions
impl DiscoveryClientOptions
Sourcepub fn new(
remote_addr: SocketAddr,
local_addr: SocketAddr,
timeout: Duration,
) -> Self
pub fn new( remote_addr: SocketAddr, local_addr: SocketAddr, timeout: Duration, ) -> Self
Creates options with the provided remote socket and a default timeout.
pub fn disable_multicast(self) -> Self
pub fn disable_broadcast(self) -> Self
pub fn with_attester_registry(self, registry: AttesterRegistry) -> Self
Auto Trait Implementations§
impl Freeze for DiscoveryClientOptions
impl RefUnwindSafe for DiscoveryClientOptions
impl Send for DiscoveryClientOptions
impl Sync for DiscoveryClientOptions
impl Unpin for DiscoveryClientOptions
impl UnwindSafe for DiscoveryClientOptions
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