pub struct Slot { /* private fields */ }Expand description
One occupied tunnel slot, released when dropped.
Dropping is the only way a slot is returned, which is what makes every exit
path — response failure, idle timeout, reset, panic — leak-free by
construction, in the same spirit as the crate::h3api::DatagramReceiver a
UDP session holds for as long as its Quarter Stream ID routes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin 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