pub struct Modem<CustomDataType = NoCustomData> {
pub custom_data: Option<CustomDataType>,
pub iccid: Option<String<20usize>>,
pub imsi: Option<String<20usize>>,
}Expand description
Defines parameters required for initiating and maintaining wireless communication with other devices.
Fields§
§custom_data: Option<CustomDataType>§iccid: Option<String<20usize>>This contains the ICCID of the modem’s SIM card.
imsi: Option<String<20usize>>This contains the IMSI of the modem’s SIM card.
Trait Implementations§
Source§impl<'de, CustomDataType> Deserialize<'de> for Modem<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for Modem<CustomDataType>where
CustomDataType: Deserialize<'de>,
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
impl<CustomDataType: Eq> Eq for Modem<CustomDataType>
impl<CustomDataType: PartialEq> StructuralPartialEq for Modem<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for Modem<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for Modem<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for Modem<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for Modem<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for Modem<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for Modem<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for Modem<CustomDataType>where
CustomDataType: UnwindSafe,
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