pub struct UdpDiscoveryConfig {
pub bind_addr: SocketAddr,
pub broadcast_addr: SocketAddr,
pub response_timeout: Duration,
pub auth_token: Option<String>,
pub enforce_auth: bool,
pub allow_legacy_crc32: bool,
pub max_datagram_size: usize,
}Expand description
UDP fallback configuration for discovery broadcast and reply collection.
Fields§
§bind_addr: SocketAddrLocal bind address used for sending and receiving replies.
broadcast_addr: SocketAddrTarget broadcast address for join/discovery datagrams.
response_timeout: DurationHow long to wait for discovery responses.
auth_token: Option<String>Optional shared token used to authenticate datagrams.
enforce_auth: boolRequire HMAC-SHA256 authentication for all incoming datagrams.
allow_legacy_crc32: boolAllow decode fallback to legacy CRC32 auth tags during migration.
max_datagram_size: usizeMaximum datagram size expected during receive.
Trait Implementations§
Source§impl Clone for UdpDiscoveryConfig
impl Clone for UdpDiscoveryConfig
Source§fn clone(&self) -> UdpDiscoveryConfig
fn clone(&self) -> UdpDiscoveryConfig
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 UdpDiscoveryConfig
impl Debug for UdpDiscoveryConfig
Auto Trait Implementations§
impl Freeze for UdpDiscoveryConfig
impl RefUnwindSafe for UdpDiscoveryConfig
impl Send for UdpDiscoveryConfig
impl Sync for UdpDiscoveryConfig
impl Unpin for UdpDiscoveryConfig
impl UnsafeUnpin for UdpDiscoveryConfig
impl UnwindSafe for UdpDiscoveryConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more