pub struct ExchangeKey {
pub session: SessionId,
pub id: ExchangeId,
pub role: Role,
}Expand description
What identifies an exchange within a node.
Fields§
§session: SessionIdThe session it lives on.
id: ExchangeIdThe 16-bit exchange id.
role: RoleWhich end this node is. Part of the key, not a property: the peer may be using the same id for an exchange of its own.
Trait Implementations§
Source§impl Clone for ExchangeKey
impl Clone for ExchangeKey
impl Copy for ExchangeKey
Source§impl Debug for ExchangeKey
impl Debug for ExchangeKey
impl Eq for ExchangeKey
Source§impl Hash for ExchangeKey
impl Hash for ExchangeKey
Source§impl PartialEq for ExchangeKey
impl PartialEq for ExchangeKey
impl StructuralPartialEq for ExchangeKey
Auto Trait Implementations§
impl Forget for ExchangeKey
impl Freeze for ExchangeKey
impl Move for ExchangeKey
impl RefUnwindSafe for ExchangeKey
impl Send for ExchangeKey
impl Sync for ExchangeKey
impl Unpin for ExchangeKey
impl UnsafeUnpin for ExchangeKey
impl UnwindSafe for ExchangeKey
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