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§
source§impl Clone for DisconnectReason
impl Clone for DisconnectReason
source§fn clone(&self) -> DisconnectReason
fn clone(&self) -> DisconnectReason
Returns a copy 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 moresource§impl Debug for DisconnectReason
impl Debug for DisconnectReason
source§impl PartialEq for DisconnectReason
impl PartialEq for DisconnectReason
source§fn eq(&self, other: &DisconnectReason) -> bool
fn eq(&self, other: &DisconnectReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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