pub enum ShutdownType {
Closed,
Shutdown,
Aborted,
Timeout,
}Expand description
Cause of producer/consumer shutdown.
Variants§
Closed
Connection closed.
Shutdown
Manual shutdown.
Aborted
Abort all requests.
Timeout
Consumer/producer timed out.
NOTE: Consumer requests will not receive Error::Timeout error (they will error out with other error type like Error::Closed or Error::Shutdown). This design is deliberate to not give consumers easily determinable info about timeout duration producer was configured with.
Trait Implementations§
Source§impl Clone for ShutdownType
impl Clone for ShutdownType
Source§fn clone(&self) -> ShutdownType
fn clone(&self) -> ShutdownType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShutdownType
Source§impl Debug for ShutdownType
impl Debug for ShutdownType
impl Eq for ShutdownType
Source§impl From<ShutdownType> for Error
impl From<ShutdownType> for Error
Source§fn from(value: ShutdownType) -> Self
fn from(value: ShutdownType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ShutdownType
impl PartialEq for ShutdownType
impl StructuralPartialEq for ShutdownType
Auto Trait Implementations§
impl Freeze for ShutdownType
impl RefUnwindSafe for ShutdownType
impl Send for ShutdownType
impl Sync for ShutdownType
impl Unpin for ShutdownType
impl UnsafeUnpin for ShutdownType
impl UnwindSafe for ShutdownType
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