pub enum Parked<M: Manage> {
Accepted,
Refused(M::Connection, SlotMeta),
Destroyed,
}Expand description
What an Exchange did with a connection offered to Exchange::park.
Variants§
Accepted
Taken; the connection now belongs to the exchange, not to the shard.
Refused(M::Connection, SlotMeta)
Refused — the exchange is full, or does not share at all. Ownership is handed back, and the shard keeps the connection locally.
Destroyed
Taken, but it could not be made portable and has been destroyed.
See Detach::detach.
Auto Trait Implementations§
impl<M> Freeze for Parked<M>
impl<M> RefUnwindSafe for Parked<M>
impl<M> Send for Parked<M>
impl<M> Sync for Parked<M>
impl<M> Unpin for Parked<M>
impl<M> UnsafeUnpin for Parked<M>
impl<M> UnwindSafe for Parked<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