pub struct ConnectionId(/* private fields */);Expand description
Identifies one connection of this process.
A number the process gave the connection when it was made, never reused
for another one while the process lives — a serial, not an address and
not derived from one. It tells connections apart without saying where they
are or who is on them: that is IncomingMeta::peer, proved in the
handshake, and a peer that proved nothing cannot be told from another by
it. The same connection has the same number as the
ConsumerId of its subscriptions.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionId
impl Clone for ConnectionId
impl Copy for ConnectionId
Source§impl Debug for ConnectionId
impl Debug for ConnectionId
impl Eq for ConnectionId
Source§impl Hash for ConnectionId
impl Hash for ConnectionId
Source§impl Ord for ConnectionId
impl Ord for ConnectionId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ConnectionId
impl PartialEq for ConnectionId
Source§impl PartialOrd for ConnectionId
impl PartialOrd for ConnectionId
impl StructuralPartialEq for ConnectionId
Auto Trait Implementations§
impl Forget for ConnectionId
impl Freeze for ConnectionId
impl Move for ConnectionId
impl RefUnwindSafe for ConnectionId
impl Send for ConnectionId
impl Sync for ConnectionId
impl Unpin for ConnectionId
impl UnsafeUnpin for ConnectionId
impl UnwindSafe for ConnectionId
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