pub enum ConnectionRole {
Initiator,
Responder,
}Expand description
Role in the Net connection.
Variants§
Initiator
Initiator: knows responder’s static public key
Responder
Responder: provides static keypair for authentication
Trait Implementations§
Source§impl Clone for ConnectionRole
impl Clone for ConnectionRole
Source§fn clone(&self) -> ConnectionRole
fn clone(&self) -> ConnectionRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConnectionRole
impl Debug for ConnectionRole
Source§impl PartialEq for ConnectionRole
impl PartialEq for ConnectionRole
Source§fn eq(&self, other: &ConnectionRole) -> bool
fn eq(&self, other: &ConnectionRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConnectionRole
impl Eq for ConnectionRole
impl StructuralPartialEq for ConnectionRole
Auto Trait Implementations§
impl Freeze for ConnectionRole
impl RefUnwindSafe for ConnectionRole
impl Send for ConnectionRole
impl Sync for ConnectionRole
impl Unpin for ConnectionRole
impl UnsafeUnpin for ConnectionRole
impl UnwindSafe for ConnectionRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.