Struct huawei_modem::cmd::network::SignalQuality
source · pub struct SignalQuality {
pub rssi: u32,
pub ber: u32,
}
Expand description
Signal quality, as returned from the modem (AT+CSQ
).
The exact values of this struct
may vary based on your modem type. Consult your modem manual
for more information.
Fields§
§rssi: u32
Recieved Signal Strength Indication (RSSI) value.
At least on some modems, this value may have the following meanings:
- 0 → less than or equal to -113 dBm
- 1 → -111 dBm
- 2-30 → -109 to -53 dBm
- 31 → greater than or equal to -51 dBm
- 99 → unknown or undetectable.
ber: u32
Channel bit error rate, in percent.
On some modems, this is permanently 99 (i.e. unsupported).
Trait Implementations§
source§impl Clone for SignalQuality
impl Clone for SignalQuality
source§fn clone(&self) -> SignalQuality
fn clone(&self) -> SignalQuality
Returns a copy 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 moresource§impl Debug for SignalQuality
impl Debug for SignalQuality
source§impl PartialEq<SignalQuality> for SignalQuality
impl PartialEq<SignalQuality> for SignalQuality
source§fn eq(&self, other: &SignalQuality) -> bool
fn eq(&self, other: &SignalQuality) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SignalQuality
impl Eq for SignalQuality
impl StructuralEq for SignalQuality
impl StructuralPartialEq for SignalQuality
Auto Trait Implementations§
impl RefUnwindSafe for SignalQuality
impl Send for SignalQuality
impl Sync for SignalQuality
impl Unpin for SignalQuality
impl UnwindSafe for SignalQuality
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