Struct ReadTicket
pub struct ReadTicket { /* private fields */ }Expand description
Proof that one dispatched read has not settled. Dropping it settles the read.
Drop takes one uncontended lock for one map operation, does no I/O, and
wakes the waiters it released only after the lock is released, so it never
blocks and never runs a waker under the ledger’s lock.
Implementations§
§impl ReadTicket
impl ReadTicket
pub fn settle(self)
pub fn settle(self)
Settles the read: the endpoint answered, or the request failed.
The explicit spelling of dropping the ticket.
Trait Implementations§
§impl Debug for ReadTicket
impl Debug for ReadTicket
Auto Trait Implementations§
impl Freeze for ReadTicket
impl RefUnwindSafe for ReadTicket
impl Send for ReadTicket
impl Sync for ReadTicket
impl Unpin for ReadTicket
impl UnsafeUnpin for ReadTicket
impl UnwindSafe for ReadTicket
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