pub struct AssociateInfo {
pub origin: Address,
pub uid: u64,
pub cookie: Option<String>,
pub protocol_version: u32,
}Expand description
Carried in the initial Associate PDU. The receiving side validates
the cookie (if any) and uses origin + uid to identify the peer.
Fields§
§origin: Address§uid: u64§protocol_version: u32Trait Implementations§
Source§impl Clone for AssociateInfo
impl Clone for AssociateInfo
Source§fn clone(&self) -> AssociateInfo
fn clone(&self) -> AssociateInfo
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 AssociateInfo
impl Debug for AssociateInfo
Source§impl<'de> Deserialize<'de> for AssociateInfo
impl<'de> Deserialize<'de> for AssociateInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AssociateInfo
impl PartialEq for AssociateInfo
Source§impl Serialize for AssociateInfo
impl Serialize for AssociateInfo
impl Eq for AssociateInfo
impl StructuralPartialEq for AssociateInfo
Auto Trait Implementations§
impl Freeze for AssociateInfo
impl RefUnwindSafe for AssociateInfo
impl Send for AssociateInfo
impl Sync for AssociateInfo
impl Unpin for AssociateInfo
impl UnsafeUnpin for AssociateInfo
impl UnwindSafe for AssociateInfo
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.