[][src]Struct btle::RSSI

pub struct RSSI(_);

Received Signal Strength Indicator (RSSI). Units: dBm. Range -127 dBm to +20 dBm. Defaults to 0 dBm.

Implementations

impl RSSI[src]

pub const MIN_RSSI_I8: i8[src]

pub const MAX_RSSI_I8: i8[src]

pub const MAX_RSSI: RSSI[src]

pub const MIN_RSSI: RSSI[src]

pub fn new(dbm: i8) -> RSSI[src]

Creates a new RSSI from dbm.

Panics

Panics if dbm < MIN_RSSI || dbm > MAX_RSSI.

pub const UNSUPPORTED_RSSI: i8[src]

pub fn maybe_rssi(val: i8) -> Result<Option<RSSI>, ConversionError>[src]

Trait Implementations

impl Clone for RSSI[src]

impl Copy for RSSI[src]

impl Debug for RSSI[src]

impl Default for RSSI[src]

impl Eq for RSSI[src]

impl From<RSSI> for TxPowerLevel[src]

fn from(rssi: RSSI) -> Self[src]

Power Level as RSSI have the same dBm range.

impl From<RSSI> for i8[src]

impl From<RSSI> for u8[src]

impl From<TxPowerLevel> for RSSI[src]

fn from(l: TxPowerLevel) -> Self[src]

Power Level as RSSI have the same dBm range.

impl Hash for RSSI[src]

impl Ord for RSSI[src]

impl PartialEq<RSSI> for RSSI[src]

impl PartialOrd<RSSI> for RSSI[src]

impl StructuralEq for RSSI[src]

impl StructuralPartialEq for RSSI[src]

impl TryFrom<i8> for RSSI[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<u8> for RSSI[src]

type Error = ConversionError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for RSSI

impl Send for RSSI

impl Sync for RSSI

impl Unpin for RSSI

impl UnwindSafe for RSSI

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.