Enum SignalStrength
pub enum SignalStrength {
Gsm {
rssi: i8,
},
Wcdma {
rssi: i8,
ecio: i16,
},
Tdscdma {
rssi: i8,
rscp: i8,
ecio: i16,
sinr: i8,
},
Lte {
rssi: i8,
rsrq: i8,
rsrp: i16,
snr: i16,
},
Cdma {
rssi: i8,
ecio: i16,
},
Hdr {
rssi: i8,
ecio: i16,
sinr: i8,
io: i32,
},
}Expand description
Signal strength information.
Returned by Client::get_signal_strength.
Only the rssi field is guaranteed to be present. Everything else depends
on the network type.
Variants§
Gsm
Fields
Wcdma
Fields
Tdscdma
Fields
Lte
Fields
§
rssi: i8RSSI in dBm. Indicates forward link pilot Ec. A signed value; -125 or lower indicates no signal.
§
rsrq: i8RSRQ value in dB (signed integer value), as measured by L1. Range: -3 to -20 (-3 equals -3 dB, -20 equals -20 dB).
Cdma
Fields
Hdr
Implementations§
§impl SignalStrength
impl SignalStrength
pub fn rssi(&self) -> i8
pub fn rssi(&self) -> i8
Returns the RSSI in dBm.
The exact meaning of this value depends on the network type.
fn from_sys(info: &SignalStrengthInfo) -> Option<Self>
fn from_sys_gsm(info: &GsmSignalInfo) -> Self
fn from_sys_wcdma(info: &WcdmaSignalInfo) -> Self
fn from_sys_tdscdma(info: &TdscdmaSignalInfo) -> Self
fn from_sys_lte(info: &LteSignalInfo) -> Self
fn from_sys_cdma(info: &CdmaSignalInfo) -> Self
fn from_sys_hdr(info: &HdrSignalInfo) -> Self
Trait Implementations§
§impl Clone for SignalStrength
impl Clone for SignalStrength
§fn clone(&self) -> SignalStrength
fn clone(&self) -> SignalStrength
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignalStrength
impl RefUnwindSafe for SignalStrength
impl Send for SignalStrength
impl Sync for SignalStrength
impl Unpin 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