pub struct AuthenticatedPeer {
pub peer_id: PeerId,
pub public_key: VerifyingKey,
pub authenticated_at: Instant,
pub session_id: [u8; 32],
}
Expand description
Authenticated peer information
Fields§
§peer_id: PeerId
Peer ID derived from public key
public_key: VerifyingKey
Ed25519 public key
authenticated_at: Instant
When authentication was completed
session_id: [u8; 32]
Session ID for this connection
Trait Implementations§
Source§impl Clone for AuthenticatedPeer
impl Clone for AuthenticatedPeer
Source§fn clone(&self) -> AuthenticatedPeer
fn clone(&self) -> AuthenticatedPeer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AuthenticatedPeer
impl RefUnwindSafe for AuthenticatedPeer
impl Send for AuthenticatedPeer
impl Sync for AuthenticatedPeer
impl Unpin 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