pub struct AuthenticatedPeer { /* private fields */ }Expand description
One admitted, established experimental peer.
The caller may create this value only after the adapter’s Brontide
handshake authenticated identity. The constructor installs the exact
negotiated Denuo registry before any private packet can be used.
Implementations§
Source§impl AuthenticatedPeer
impl AuthenticatedPeer
Sourcepub fn bind(
identity: PeerIdentity,
admission: ExperimentalPeerState,
negotiated: NegotiatedRegistry,
) -> Result<AuthenticatedPeer, P2pTransportError>
pub fn bind( identity: PeerIdentity, admission: ExperimentalPeerState, negotiated: NegotiatedRegistry, ) -> Result<AuthenticatedPeer, P2pTransportError>
Bind an authenticated key to established registry-negotiated state.
Sourcepub const fn identity(&self) -> PeerIdentity
pub const fn identity(&self) -> PeerIdentity
Brontide-authenticated remote identity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthenticatedPeer
impl RefUnwindSafe for AuthenticatedPeer
impl Send for AuthenticatedPeer
impl Sync for AuthenticatedPeer
impl Unpin for AuthenticatedPeer
impl UnsafeUnpin for AuthenticatedPeer
impl UnwindSafe for AuthenticatedPeer
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