pub struct DiscoveryAttempt {
pub target: SocketAddr,
pub mode: DiscoveryTargetKind,
pub local_bind: SocketAddr,
pub payload_len: usize,
pub bytes_sent: Option<usize>,
pub error: Option<DiscoveryErrorDetails>,
}Fields§
§target: SocketAddr§mode: DiscoveryTargetKind§local_bind: SocketAddr§payload_len: usize§bytes_sent: Option<usize>§error: Option<DiscoveryErrorDetails>Implementations§
Source§impl DiscoveryAttempt
impl DiscoveryAttempt
pub fn debug_string(&self) -> String
Trait Implementations§
Source§impl Clone for DiscoveryAttempt
impl Clone for DiscoveryAttempt
Source§fn clone(&self) -> DiscoveryAttempt
fn clone(&self) -> DiscoveryAttempt
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 moreAuto Trait Implementations§
impl Freeze for DiscoveryAttempt
impl RefUnwindSafe for DiscoveryAttempt
impl Send for DiscoveryAttempt
impl Sync for DiscoveryAttempt
impl Unpin for DiscoveryAttempt
impl UnsafeUnpin for DiscoveryAttempt
impl UnwindSafe for DiscoveryAttempt
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