pub struct PeerIdentity {
pub public_key: [u8; 32],
}Expand description
Peer identity pin used to verify remote handshake authentication.
Fields§
§public_key: [u8; 32]Expected Ed25519 public key bytes for the remote peer.
Implementations§
Trait Implementations§
Source§impl Clone for PeerIdentity
impl Clone for PeerIdentity
Source§fn clone(&self) -> PeerIdentity
fn clone(&self) -> PeerIdentity
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 moreSource§impl Debug for PeerIdentity
impl Debug for PeerIdentity
Source§impl PartialEq for PeerIdentity
impl PartialEq for PeerIdentity
impl Copy for PeerIdentity
impl Eq for PeerIdentity
impl StructuralPartialEq for PeerIdentity
Auto Trait Implementations§
impl Freeze for PeerIdentity
impl RefUnwindSafe for PeerIdentity
impl Send for PeerIdentity
impl Sync for PeerIdentity
impl Unpin for PeerIdentity
impl UnsafeUnpin for PeerIdentity
impl UnwindSafe for PeerIdentity
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