Struct PendingSlot
#[non_exhaustive]pub struct PendingSlot {
pub slot: u8,
pub peer: PeerId,
pub source: Option<SocketAddr>,
pub expires: SystemTime,
}Expand description
A joiner that shows its own PIN and waits for the operator to type it.
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.slot: u8The slot the desk assigned, which the joiner shows with its PIN.
peer: PeerIdThe joiner’s id.
source: Option<SocketAddr>Where it connected from, when known.
expires: SystemTimeWhen the slot expires.
Trait Implementations§
§impl Clone for PendingSlot
impl Clone for PendingSlot
§fn clone(&self) -> PendingSlot
fn clone(&self) -> PendingSlot
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 more§impl Debug for PendingSlot
impl Debug for PendingSlot
impl Eq for PendingSlot
§impl PartialEq for PendingSlot
impl PartialEq for PendingSlot
impl StructuralPartialEq for PendingSlot
Auto Trait Implementations§
impl Freeze for PendingSlot
impl RefUnwindSafe for PendingSlot
impl Send for PendingSlot
impl Sync for PendingSlot
impl Unpin for PendingSlot
impl UnsafeUnpin for PendingSlot
impl UnwindSafe for PendingSlot
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