Struct Nr5gSignal
#[non_exhaustive]pub struct Nr5gSignal {
pub rsrq: Option<f64>,
pub rsrp: Option<f64>,
pub snr: Option<f64>,
pub error_rate: Option<f64>,
}Expand description
Signal information for 5G NR.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rsrq: Option<f64>The RSRQ in dB.
rsrp: Option<f64>The RSRP in dBm.
snr: Option<f64>The signal to noise ratio in dB.
error_rate: Option<f64>The block error rate in percent.
Added in ModemManager 1.20.
Trait Implementations§
§impl Clone for Nr5gSignal
impl Clone for Nr5gSignal
§fn clone(&self) -> Nr5gSignal
fn clone(&self) -> Nr5gSignal
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 more§impl Debug for Nr5gSignal
impl Debug for Nr5gSignal
§impl Default for Nr5gSignal
impl Default for Nr5gSignal
§fn default() -> Nr5gSignal
fn default() -> Nr5gSignal
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for Nr5gSignal
impl<'de> Deserialize<'de> for Nr5gSignal
§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<Nr5gSignal> for Value<'static>
impl From<Nr5gSignal> for Value<'static>
§fn from(s: Nr5gSignal) -> Self
fn from(s: Nr5gSignal) -> Self
Converts to this type from the input type.
§impl PartialEq for Nr5gSignal
impl PartialEq for Nr5gSignal
§impl Serialize for Nr5gSignal
impl Serialize for Nr5gSignal
impl StructuralPartialEq for Nr5gSignal
§impl TryFrom<Nr5gSignal> for OwnedValue
impl TryFrom<Nr5gSignal> for OwnedValue
§fn try_from(s: Nr5gSignal) -> Result<Self>
fn try_from(s: Nr5gSignal) -> Result<Self>
Performs the conversion.
§impl TryFrom<OwnedValue> for Nr5gSignal
impl TryFrom<OwnedValue> for Nr5gSignal
§impl TryFrom<Value<'static>> for Nr5gSignal
impl TryFrom<Value<'static>> for Nr5gSignal
§impl Type for Nr5gSignal
impl Type for Nr5gSignal
Auto Trait Implementations§
impl Freeze for Nr5gSignal
impl RefUnwindSafe for Nr5gSignal
impl Send for Nr5gSignal
impl Sync for Nr5gSignal
impl Unpin for Nr5gSignal
impl UnsafeUnpin for Nr5gSignal
impl UnwindSafe for Nr5gSignal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.