Struct PendingDevice
#[non_exhaustive]pub struct PendingDevice {
pub peer: PeerId,
pub source: Option<SocketAddr>,
pub label: String,
pub expires: SystemTime,
/* private fields */
}Expand description
A device-flow joiner found by its user code: what an app may show before it approves or denies.
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.peer: PeerIdThe joiner’s id.
source: Option<SocketAddr>Where it connected from, when known.
label: StringThe label the joiner sent; the joiner chose it, so it proves nothing.
expires: SystemTimeWhen its user code expires.
Trait Implementations§
§impl Clone for PendingDevice
impl Clone for PendingDevice
§fn clone(&self) -> PendingDevice
fn clone(&self) -> PendingDevice
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 PendingDevice
impl Debug for PendingDevice
impl Eq for PendingDevice
§impl PartialEq for PendingDevice
impl PartialEq for PendingDevice
impl StructuralPartialEq for PendingDevice
Auto Trait Implementations§
impl Freeze for PendingDevice
impl RefUnwindSafe for PendingDevice
impl Send for PendingDevice
impl Sync for PendingDevice
impl Unpin for PendingDevice
impl UnsafeUnpin for PendingDevice
impl UnwindSafe for PendingDevice
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