Struct mavlink::asluav::CELLULAR_STATUS_DATA
source · pub struct CELLULAR_STATUS_DATA {
pub mcc: u16,
pub mnc: u16,
pub lac: u16,
pub status: CellularStatusFlag,
pub failure_reason: CellularNetworkFailedReason,
pub mavtype: CellularNetworkRadioType,
pub quality: u8,
}
Available on crate feature
asluav
only.Expand description
id: 334 Report current used cellular network status.
Fields§
§mcc: u16
Mobile country code. If unknown, set to UINT16_MAX.
mnc: u16
Mobile network code. If unknown, set to UINT16_MAX.
lac: u16
Location area code. If unknown, set to 0.
status: CellularStatusFlag
Cellular modem status.
failure_reason: CellularNetworkFailedReason
Failure reason when status in in CELLULAR_STATUS_FLAG_FAILED.
mavtype: CellularNetworkRadioType
Cellular network radio type: gsm, cdma, lte….
quality: u8
Signal quality in percent. If unknown, set to UINT8_MAX.
Implementations§
source§impl CELLULAR_STATUS_DATA
impl CELLULAR_STATUS_DATA
pub const ENCODED_LEN: usize = 10usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for CELLULAR_STATUS_DATA
impl Clone for CELLULAR_STATUS_DATA
source§fn clone(&self) -> CELLULAR_STATUS_DATA
fn clone(&self) -> CELLULAR_STATUS_DATA
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 CELLULAR_STATUS_DATA
impl Debug for CELLULAR_STATUS_DATA
source§impl Default for CELLULAR_STATUS_DATA
impl Default for CELLULAR_STATUS_DATA
source§impl<'de> Deserialize<'de> for CELLULAR_STATUS_DATA
impl<'de> Deserialize<'de> for CELLULAR_STATUS_DATA
source§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
source§impl MessageData for CELLULAR_STATUS_DATA
impl MessageData for CELLULAR_STATUS_DATA
const ID: u32 = 334u32
const NAME: &'static str = "CELLULAR_STATUS"
const EXTRA_CRC: u8 = 72u8
const ENCODED_LEN: usize = 10usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for CELLULAR_STATUS_DATA
impl PartialEq for CELLULAR_STATUS_DATA
source§impl Serialize for CELLULAR_STATUS_DATA
impl Serialize for CELLULAR_STATUS_DATA
impl StructuralPartialEq for CELLULAR_STATUS_DATA
Auto Trait Implementations§
impl Freeze for CELLULAR_STATUS_DATA
impl RefUnwindSafe for CELLULAR_STATUS_DATA
impl Send for CELLULAR_STATUS_DATA
impl Sync for CELLULAR_STATUS_DATA
impl Unpin for CELLULAR_STATUS_DATA
impl UnwindSafe for CELLULAR_STATUS_DATA
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)