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: u32Recieved 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: u32Channel 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 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 SignalQuality
impl Debug for SignalQuality
Source§impl PartialEq for SignalQuality
impl PartialEq for SignalQuality
Source§fn eq(&self, other: &SignalQuality) -> bool
fn eq(&self, other: &SignalQuality) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SignalQuality
impl Eq for SignalQuality
impl StructuralPartialEq for SignalQuality
Auto Trait Implementations§
impl Freeze for SignalQuality
impl RefUnwindSafe for SignalQuality
impl Send for SignalQuality
impl Sync for SignalQuality
impl Unpin for SignalQuality
impl UnsafeUnpin 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