Struct OperatingModeState
#[non_exhaustive]pub struct OperatingModeState {
pub mode: OperatingMode,
pub offline_reason: Option<OfflineReason>,
pub hardware_controlled: Option<bool>,
}Expand description
Operating mode of the modem.
Returned by GetOperatingMode.
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.mode: OperatingModeCurrent mode.
offline_reason: Option<OfflineReason>Reasons for the offline mode, if the modem reports them.
hardware_controlled: Option<bool>Whether the mode is restricted by hardware.
Trait Implementations§
§impl Clone for OperatingModeState
impl Clone for OperatingModeState
§fn clone(&self) -> OperatingModeState
fn clone(&self) -> OperatingModeState
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 moreimpl Copy for OperatingModeState
§impl Debug for OperatingModeState
impl Debug for OperatingModeState
impl Eq for OperatingModeState
§impl PartialEq for OperatingModeState
impl PartialEq for OperatingModeState
impl StructuralPartialEq for OperatingModeState
§impl TryFrom<&Message> for OperatingModeState
impl TryFrom<&Message> for OperatingModeState
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(message: &Message) -> Result<Self, DecodeError>
fn try_from(message: &Message) -> Result<Self, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OperatingModeState
impl RefUnwindSafe for OperatingModeState
impl Send for OperatingModeState
impl Sync for OperatingModeState
impl Unpin for OperatingModeState
impl UnsafeUnpin for OperatingModeState
impl UnwindSafe for OperatingModeState
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