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
sourceimpl Clone for ConnectionState
impl Clone for ConnectionState
sourcefn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
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 ConnectionState
impl Debug for ConnectionState
sourceimpl From<usize> for ConnectionState
impl From<usize> for ConnectionState
sourcefn from(num: usize) -> ConnectionState
fn from(num: usize) -> ConnectionState
Converts to this type from the input type.
sourceimpl PartialEq<ConnectionState> for ConnectionState
impl PartialEq<ConnectionState> for ConnectionState
sourcefn eq(&self, other: &ConnectionState) -> bool
fn eq(&self, other: &ConnectionState) -> bool
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
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