pub struct GateTag(pub u64);Expand description
An opaque value the gate returns at admission, stored in ConnectionInfo::gate.
It lets a protocol engine name the connection to the gate without being generic over the gate’s type. net-io never interprets it.
§Examples
let tag = net_io::GateTag(17);
assert_eq!(tag.0, 17);Tuple Fields§
§0: u64Trait Implementations§
impl Copy for GateTag
impl Eq for GateTag
impl StructuralPartialEq for GateTag
Auto Trait Implementations§
impl Freeze for GateTag
impl RefUnwindSafe for GateTag
impl Send for GateTag
impl Sync for GateTag
impl Unpin for GateTag
impl UnsafeUnpin for GateTag
impl UnwindSafe for GateTag
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