pub enum CloseReason {
Graceful,
PolicyDenied(Cow<'static, str>),
ProtocolError(Cow<'static, str>),
Cancelled,
}Variants§
Graceful
PolicyDenied(Cow<'static, str>)
ProtocolError(Cow<'static, str>)
Cancelled
Daemon-initiated cancellation — listener force_cancel fired during
shutdown drain (01-topology.md § Listener lifecycle), or any other
ctx.cancel.cancelled() propagation. Distinct from Graceful so
management observers can distinguish “client EOF’d” from “daemon
pulled the plug while in-flight.”
Trait Implementations§
Source§impl Clone for CloseReason
impl Clone for CloseReason
Source§fn clone(&self) -> CloseReason
fn clone(&self) -> CloseReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CloseReason
impl RefUnwindSafe for CloseReason
impl Send for CloseReason
impl Sync for CloseReason
impl Unpin for CloseReason
impl UnsafeUnpin for CloseReason
impl UnwindSafe for CloseReason
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