pub enum SnStatus {
Init,
Connecting,
Online,
Offline,
}Variants
Init
Connecting
Online
Offline
Trait Implementations
sourceimpl FromStr for SnStatus
impl FromStr for SnStatus
type Err = BuckyError
type Err = BuckyError
The associated error which can be returned from parsing.
sourcefn from_str(s: &str) -> BuckyResult<Self>
fn from_str(s: &str) -> BuckyResult<Self>
Parses a string
s to return a value of this type. Read moresourceimpl TryFrom<u8> for SnStatus
impl TryFrom<u8> for SnStatus
type Error = BuckyError
type Error = BuckyError
The type returned in the event of a conversion error.
sourcefn try_from(code: u8) -> BuckyResult<Self>
fn try_from(code: u8) -> BuckyResult<Self>
Performs the conversion.
impl Eq for SnStatus
impl StructuralEq for SnStatus
impl StructuralPartialEq for SnStatus
Auto Trait Implementations
impl RefUnwindSafe for SnStatus
impl Send for SnStatus
impl Sync for SnStatus
impl Unpin for SnStatus
impl UnwindSafe for SnStatus
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