pub enum ConnectReason {
Request,
AutoReconnect,
}
Expand description
This enum specifies the reason of a successful connection. It is generated from the Connect event receiver
Variants§
Request
Connection established after request from user.
AutoReconnect
Connection after auto-reconnect.
Trait Implementations§
source§impl Clone for ConnectReason
impl Clone for ConnectReason
source§fn clone(&self) -> ConnectReason
fn clone(&self) -> ConnectReason
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 ConnectReason
impl Debug for ConnectReason
source§impl PartialEq for ConnectReason
impl PartialEq for ConnectReason
source§fn eq(&self, other: &ConnectReason) -> bool
fn eq(&self, other: &ConnectReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectReason
impl StructuralPartialEq for ConnectReason
Auto Trait Implementations§
impl RefUnwindSafe for ConnectReason
impl Send for ConnectReason
impl Sync for ConnectReason
impl Unpin for ConnectReason
impl UnwindSafe for ConnectReason
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