#[non_exhaustive]pub struct Paired {
pub peer: KeyMaterial,
pub mode: Mode,
}Expand description
A successful pairing: the other side’s key, now to be trusted.
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: KeyMaterialThe other side’s key. A responder has accepted it in its store; a joiner’s caller stores it.
mode: ModeHow it was paired.
Trait Implementations§
impl Eq for Paired
impl StructuralPartialEq for Paired
Auto Trait Implementations§
impl Freeze for Paired
impl RefUnwindSafe for Paired
impl Send for Paired
impl Sync for Paired
impl Unpin for Paired
impl UnsafeUnpin for Paired
impl UnwindSafe for Paired
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