pub struct Admitted<T> {
pub lane: Lane,
pub ticket: T,
pub tag: GateTag,
}Expand description
What admission grants.
let a = net_io::Admitted { lane: net_io::Lane(1), ticket: (), tag: net_io::GateTag(5) };
assert_eq!(a.tag.0, 5);Fields§
§lane: LaneThe connection’s lane.
ticket: TThe gate’s per-connection state.
tag: GateTagThe gate’s opaque name for the connection, stored in ConnectionInfo::gate.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Admitted<T>where
T: Freeze,
impl<T> RefUnwindSafe for Admitted<T>where
T: RefUnwindSafe,
impl<T> Send for Admitted<T>where
T: Send,
impl<T> Sync for Admitted<T>where
T: Sync,
impl<T> Unpin for Admitted<T>where
T: Unpin,
impl<T> UnsafeUnpin for Admitted<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Admitted<T>where
T: UnwindSafe,
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