pub enum SignalStrength {
Weak,
Moderate,
Strong,
Unknown,
Custom(String),
}Expand description
Descriptive signal strength vocabulary.
Variants§
Weak
Weak strength vocabulary.
Moderate
Moderate strength vocabulary.
Strong
Strong strength vocabulary.
Unknown
Unknown strength vocabulary.
Custom(String)
Caller-defined strength vocabulary.
Trait Implementations§
Source§impl Clone for SignalStrength
impl Clone for SignalStrength
Source§fn clone(&self) -> SignalStrength
fn clone(&self) -> SignalStrength
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 moreSource§impl Debug for SignalStrength
impl Debug for SignalStrength
Source§impl Display for SignalStrength
impl Display for SignalStrength
Source§impl FromStr for SignalStrength
impl FromStr for SignalStrength
Source§type Err = SignalStrengthParseError
type Err = SignalStrengthParseError
The associated error which can be returned from parsing.
Source§fn from_str(
value: &str,
) -> Result<SignalStrength, <SignalStrength as FromStr>::Err>
fn from_str( value: &str, ) -> Result<SignalStrength, <SignalStrength as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SignalStrength
impl Hash for SignalStrength
Source§impl Ord for SignalStrength
impl Ord for SignalStrength
Source§fn cmp(&self, other: &SignalStrength) -> Ordering
fn cmp(&self, other: &SignalStrength) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SignalStrength
impl PartialEq for SignalStrength
Source§fn eq(&self, other: &SignalStrength) -> bool
fn eq(&self, other: &SignalStrength) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SignalStrength
impl PartialOrd for SignalStrength
impl Eq for SignalStrength
impl StructuralPartialEq for SignalStrength
Auto Trait Implementations§
impl Freeze for SignalStrength
impl RefUnwindSafe for SignalStrength
impl Send for SignalStrength
impl Sync for SignalStrength
impl Unpin for SignalStrength
impl UnsafeUnpin for SignalStrength
impl UnwindSafe for SignalStrength
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