Struct WaitingEntry
#[non_exhaustive]pub struct WaitingEntry {
pub id: PeerId,
pub source: Option<SocketAddr>,
}Expand description
A peer waiting for acceptance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: PeerIdThe peer’s id.
source: Option<SocketAddr>The address the handshake came from; None when the caller did not know it.
Trait Implementations§
§impl Clone for WaitingEntry
impl Clone for WaitingEntry
§fn clone(&self) -> WaitingEntry
fn clone(&self) -> WaitingEntry
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 moreimpl Copy for WaitingEntry
§impl Debug for WaitingEntry
impl Debug for WaitingEntry
impl Eq for WaitingEntry
§impl PartialEq for WaitingEntry
impl PartialEq for WaitingEntry
impl StructuralPartialEq for WaitingEntry
Auto Trait Implementations§
impl Freeze for WaitingEntry
impl RefUnwindSafe for WaitingEntry
impl Send for WaitingEntry
impl Sync for WaitingEntry
impl Unpin for WaitingEntry
impl UnsafeUnpin for WaitingEntry
impl UnwindSafe for WaitingEntry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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