pub enum ShutdownReason {
RequestStreamClosed,
AddressStreamClosed,
// some variants omitted
}Expand description
A reason connection pool being shut down
This value is passed to ErrorLog::pool_shutting_down method.
Variants§
RequestStreamClosed
Request stream is shutting down
This usually means that all clones of queue::Pool object are
destroyed
AddressStreamClosed
Address stream is closed
Shutting down address stream is commonly used to force shut down
connection pool, even if there are users. Users will get an error
on the next start_send.
Trait Implementations§
Source§impl Debug for ShutdownReason
impl Debug for ShutdownReason
Auto Trait Implementations§
impl Freeze for ShutdownReason
impl RefUnwindSafe for ShutdownReason
impl Send for ShutdownReason
impl Sync for ShutdownReason
impl Unpin for ShutdownReason
impl UnwindSafe for ShutdownReason
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