#[non_exhaustive]pub enum ConnectionState {
Disconnected,
Connected,
Reserved(u8),
}Expand description
connection_state values (Table 80). The field is 2 bits; see the module doc
for the 0x10-0x11 reserved-range typo note.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disconnected
0x00 — Disconnected (interface inactive or disconnected).
Connected
0x01 — Connected (interface active with a valid IP address).
Reserved(u8)
Reserved 2-bit value (0x02–0x03).
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionState
impl Clone for ConnectionState
Source§fn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionState
Source§impl Debug for ConnectionState
impl Debug for ConnectionState
Source§impl Display for ConnectionState
impl Display for ConnectionState
impl Eq for ConnectionState
Source§impl PartialEq for ConnectionState
impl PartialEq for ConnectionState
Source§impl Serialize for ConnectionState
Available on crate feature serde only.
impl Serialize for ConnectionState
Available on crate feature
serde only.impl StructuralPartialEq for ConnectionState
Auto Trait Implementations§
impl Freeze for ConnectionState
impl RefUnwindSafe for ConnectionState
impl Send for ConnectionState
impl Sync for ConnectionState
impl Unpin for ConnectionState
impl UnsafeUnpin 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