pub struct Established<S> {
pub peer: PeerId,
pub key: Option<KeyMaterial>,
pub session: S,
}Expand description
A verified peer and what the method produced besides.
Fields§
§peer: PeerIdThe peer’s id, verified by the handshake.
key: Option<KeyMaterial>The peer’s public key material, when the method has one, to hand to a
TrustStore.
session: SWhat the method yields: an encrypted channel (for TLS, the finished connection),
session keys, or () for a method that only authenticates. The type says which.
Trait Implementations§
Source§impl<S: Clone> Clone for Established<S>
impl<S: Clone> Clone for Established<S>
Source§impl<S: Debug> Debug for Established<S>
impl<S: Debug> Debug for Established<S>
impl<S: Eq> Eq for Established<S>
Source§impl<S: PartialEq> PartialEq for Established<S>
impl<S: PartialEq> PartialEq for Established<S>
impl<S: PartialEq> StructuralPartialEq for Established<S>
Auto Trait Implementations§
impl<S> Freeze for Established<S>where
S: Freeze,
impl<S> RefUnwindSafe for Established<S>where
S: RefUnwindSafe,
impl<S> Send for Established<S>where
S: Send,
impl<S> Sync for Established<S>where
S: Sync,
impl<S> Unpin for Established<S>where
S: Unpin,
impl<S> UnsafeUnpin for Established<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Established<S>where
S: UnwindSafe,
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