pub struct Slot { /* private fields */ }Expand description
A connection’s place in the Registry, given up when it is dropped.
Implementations§
Source§impl Slot
impl Slot
pub fn limits(&self) -> &Limits
Sourcepub fn uid(&self) -> Option<u32>
pub fn uid(&self) -> Option<u32>
The uid of the connection’s peer (u32::MAX when the socket did not
tell), for the security log.
Sourcepub fn begin(&self) -> bool
pub fn begin(&self) -> bool
Says a request is being answered. False if the connection was evicted first: the request must not run, whoever sent it is told to send it again.
pub fn evicted(&self) -> bool
pub fn hold(&self) -> Held<'_>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Slot
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more