pub struct NoExchange;Expand description
The default: shards never share. Zero-sized, zero-cost.
Trait Implementations§
Source§impl Clone for NoExchange
impl Clone for NoExchange
impl Copy for NoExchange
Source§impl Debug for NoExchange
impl Debug for NoExchange
Source§impl Default for NoExchange
impl Default for NoExchange
Source§impl<M: Manage> Exchange<M> for NoExchange
impl<M: Manage> Exchange<M> for NoExchange
Source§fn park(&self, conn: M::Connection, meta: SlotMeta) -> Parked<M>
fn park(&self, conn: M::Connection, meta: SlotMeta) -> Parked<M>
Offers an idle connection to other threads. Must not block.
Source§async fn unpark(&self) -> Unparked<M>
async fn unpark(&self) -> Unparked<M>
Tries to claim a connection parked by another thread and reattach it
to this one.
Source§fn clear(&self)
fn clear(&self)
Drops every parked connection. Called by
Pool::close.Auto Trait Implementations§
impl Freeze for NoExchange
impl RefUnwindSafe for NoExchange
impl Send for NoExchange
impl Sync for NoExchange
impl Unpin for NoExchange
impl UnsafeUnpin for NoExchange
impl UnwindSafe for NoExchange
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