Skip to main content

CellInfo

Struct CellInfo 

#[non_exhaustive]
pub struct CellInfo {
Show 31 fields pub cell_type: Option<CellType>, pub serving: Option<bool>, pub operator_id: Option<String>, pub nid: Option<String>, pub sid: Option<String>, pub base_station_id: Option<String>, pub ref_pn: Option<String>, pub pilot_strength: Option<u32>, pub lac: Option<String>, pub tac: Option<String>, pub ci: Option<String>, pub physical_ci: Option<String>, pub timing_advance: Option<u32>, pub arfcn: Option<u32>, pub rx_level: Option<u32>, pub frequency_fdd_ul: Option<u32>, pub frequency_fdd_dl: Option<u32>, pub frequency_tdd: Option<u32>, pub uarfcn: Option<u32>, pub psc: Option<u32>, pub rscp: Option<f64>, pub ecio: Option<f64>, pub path_loss: Option<u32>, pub cell_parameter_id: Option<u32>, pub earfcn: Option<u32>, pub nrarfcn: Option<u32>, pub rsrp: Option<f64>, pub rsrq: Option<f64>, pub sinr: Option<f64>, pub serving_cell_type: Option<ServingCellType>, pub bandwidth: Option<u32>,
}
Expand description

A cell that Modem.GetCellInfo reports.

The service fills only the fields that apply to the cell type. Fields that say serving cell only apply when serving is true.

Added in ModemManager 1.20.

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.
§cell_type: Option<CellType>

The access technology of the cell.

§serving: Option<bool>

Whether this is the serving cell or a neighbor.

§operator_id: Option<String>

The MCC and MNC of the operator.

§nid: Option<String>

The CDMA network ID in upper-case hexadecimal.

§sid: Option<String>

The CDMA system ID in upper-case hexadecimal.

§base_station_id: Option<String>

The base station ID in upper-case hexadecimal.

§ref_pn: Option<String>

The CDMA base station PN number in upper-case hexadecimal.

§pilot_strength: Option<u32>

The CDMA pilot signal strength, on the scale of the GSM SINR.

§lac: Option<String>

The location area code in upper-case hexadecimal.

§tac: Option<String>

The tracking area code in upper-case hexadecimal.

§ci: Option<String>

The cell identifier in upper-case hexadecimal.

§physical_ci: Option<String>

The physical cell ID in upper-case hexadecimal.

§timing_advance: Option<u32>

The timing advance of the serving cell.

§arfcn: Option<u32>

The GSM absolute RF channel number.

§rx_level: Option<u32>

The Rx level of the serving GSM cell, from 0 to 63.

§frequency_fdd_ul: Option<u32>

The FDD uplink frequency of the serving UMTS cell.

§frequency_fdd_dl: Option<u32>

The FDD downlink frequency of the serving UMTS cell.

§frequency_tdd: Option<u32>

The TDD frequency of the serving UMTS cell.

§uarfcn: Option<u32>

The UTRA absolute RF channel number.

§psc: Option<u32>

The primary scrambling code of a UMTS cell.

§rscp: Option<f64>

The received signal code power, in dBm.

§ecio: Option<f64>

The received energy per chip over the band power density, in dB.

§path_loss: Option<u32>

The path loss of the serving cell.

§cell_parameter_id: Option<u32>

The cell parameter ID of a TD-SCDMA cell.

§earfcn: Option<u32>

The E-UTRA absolute RF channel number.

§nrarfcn: Option<u32>

The NR absolute RF channel number.

§rsrp: Option<f64>

The reference signal received power, in dBm.

§rsrq: Option<f64>

The reference signal received quality, in dB.

§sinr: Option<f64>

The signal to interference and noise ratio of a 5G cell.

§serving_cell_type: Option<ServingCellType>

The role of the serving cell.

Added in ModemManager 1.22.

§bandwidth: Option<u32>

The downlink bandwidth of the carrier.

Added in ModemManager 1.22.

Trait Implementations§

§

impl Clone for CellInfo

§

fn clone(&self) -> CellInfo

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for CellInfo

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for CellInfo

§

fn default() -> CellInfo

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for CellInfo

§

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<CellInfo> for Value<'static>

§

fn from(s: CellInfo) -> Self

Converts to this type from the input type.
§

impl PartialEq for CellInfo

§

fn eq(&self, other: &CellInfo) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl Serialize for CellInfo

§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl StructuralPartialEq for CellInfo

§

impl TryFrom<CellInfo> for OwnedValue

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(s: CellInfo) -> Result<Self>

Performs the conversion.
§

impl TryFrom<OwnedValue> for CellInfo

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(value: OwnedValue) -> Result<Self>

Performs the conversion.
§

impl TryFrom<Value<'static>> for CellInfo

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(value: Value<'static>) -> Result<Self>

Performs the conversion.
§

impl Type for CellInfo

§

const SIGNATURE: &'static Signature

The signature for the implementing type, in parsed format. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<'de, T> DynamicDeserialize<'de> for T
where T: Type + Deserialize<'de>,

§

type Deserializer = PhantomData<T>

A DeserializeSeed implementation for this type.
§

fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>

Get a deserializer compatible with this parsed signature.
§

impl<T> DynamicType for T
where T: Type + ?Sized,

§

fn signature(&self) -> Signature

The type signature for self. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more