pub enum Unparked<M: Manage> {
Claimed(M::Connection, SlotMeta),
Empty,
Lost,
}Expand description
What an Exchange produced for Exchange::unpark.
Variants§
Claimed(M::Connection, SlotMeta)
Claimed from another thread and re-wrapped in this thread’s runtime.
Empty
Nothing was available; the caller should dial.
Lost
One was taken, but Detach::attach failed and it has been destroyed.
The caller should dial. Reported separately so the pool can keep its
created/closed counters balanced.
Auto Trait Implementations§
impl<M> Freeze for Unparked<M>
impl<M> RefUnwindSafe for Unparked<M>
impl<M> Send for Unparked<M>
impl<M> Sync for Unparked<M>
impl<M> Unpin for Unparked<M>
impl<M> UnsafeUnpin for Unparked<M>
impl<M> UnwindSafe for Unparked<M>
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