pub struct Slot { /* private fields */ }Expand description
A connection slot wrapping the internal connection state.
Contains the four-tuple which maps to the slot, completing the loop for lookups
(slotkey->4tuple,4tuple->slotkey). Usage of this acts similar to a slotmap where a dedicated
SlotKey allows referring to a connection outside of its lifetime without introducing
lifetime-tracked references and dependencies.
Internally used as the backing storage to open or accept a new connection.
Implementations§
Trait Implementations§
impl Copy for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnwindSafe for Slot
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