pub enum ConnectionState {
Disconnected,
Connected,
Pending,
}
Expand description
This enum is returned from the get_connection_state
method.
Variants§
Disconnected
No connection is established.
Connected
A connection to the Brick Daemon or the WIFI/Ethernet Extension is established.
Pending
IP Connection is currently trying to connect.
Trait Implementations§
source§impl Clone for ConnectionState
impl Clone for ConnectionState
source§fn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
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 ConnectionState
impl Debug for ConnectionState
source§impl From<usize> for ConnectionState
impl From<usize> for ConnectionState
source§fn from(num: usize) -> ConnectionState
fn from(num: usize) -> ConnectionState
Converts to this type from the input type.
source§impl PartialEq for ConnectionState
impl PartialEq for ConnectionState
source§fn eq(&self, other: &ConnectionState) -> bool
fn eq(&self, other: &ConnectionState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectionState
impl StructuralPartialEq for ConnectionState
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionState
impl Send for ConnectionState
impl Sync for ConnectionState
impl Unpin for ConnectionState
impl UnwindSafe for ConnectionState
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