#[non_exhaustive]pub enum ConnectionEnd {
Goodbye,
Eof,
Reset,
Closed,
}Expand description
How a registered module’s daemon connection ended. After the handshake, EOF
and socket disconnects are orderly ends on every platform: serving calls
on_connection_end and returns Ok(()). Handshake, handler, protocol and
other transport failures return errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Goodbye
The daemon sent GOODBYE on channel 0: a planned stop.
Eof
The daemon closed the connection without GOODBYE.
Reset
The socket was reset or aborted, or its writer disconnected. This is how
Windows reports a daemon that died, which Unix reports as Self::Eof.
Closed
The module closed the connection itself, including a ModuleStopHandle stop.
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionEnd
impl Clone for ConnectionEnd
impl Copy for ConnectionEnd
Source§impl Debug for ConnectionEnd
impl Debug for ConnectionEnd
Source§impl Display for ConnectionEnd
impl Display for ConnectionEnd
impl Eq for ConnectionEnd
Source§impl PartialEq for ConnectionEnd
impl PartialEq for ConnectionEnd
impl StructuralPartialEq for ConnectionEnd
Auto Trait Implementations§
impl Forget for ConnectionEnd
impl Freeze for ConnectionEnd
impl Move for ConnectionEnd
impl RefUnwindSafe for ConnectionEnd
impl Send for ConnectionEnd
impl Sync for ConnectionEnd
impl Unpin for ConnectionEnd
impl UnsafeUnpin for ConnectionEnd
impl UnwindSafe for ConnectionEnd
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