pub enum DisconnectReason {
Request,
Error,
Shutdown,
}
Expand description
This enum specifies the reason of a connections termination. It is generated from the Disconnect event receiver
Variants
Request
Disconnect was requested by user.
Error
Disconnect because of an unresolvable error.
Shutdown
Disconnect initiated by Brick Daemon or WIFI/Ethernet Extension.
Trait Implementations
sourceimpl Clone for DisconnectReason
impl Clone for DisconnectReason
sourcefn clone(&self) -> DisconnectReason
fn clone(&self) -> DisconnectReason
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DisconnectReason
impl Debug for DisconnectReason
sourceimpl PartialEq<DisconnectReason> for DisconnectReason
impl PartialEq<DisconnectReason> for DisconnectReason
sourcefn eq(&self, other: &DisconnectReason) -> bool
fn eq(&self, other: &DisconnectReason) -> bool
impl Copy for DisconnectReason
impl StructuralPartialEq for DisconnectReason
Auto Trait Implementations
impl RefUnwindSafe for DisconnectReason
impl Send for DisconnectReason
impl Sync for DisconnectReason
impl Unpin for DisconnectReason
impl UnwindSafe for DisconnectReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more