Struct SessionType
#[repr(transparent)]pub struct SessionType(pub u8);Expand description
Kind of session (uim_session_type_enum_v01).
A session ties a request to a card or to an application on it.
Tuple Fields§
§0: u8Implementations§
§impl SessionType
impl SessionType
pub const PRIMARY_GW: Self
pub const PRIMARY_GW: Self
GSM or UMTS application that the modem uses for service.
Value 0.
pub const PRIMARY_1X: Self
pub const PRIMARY_1X: Self
Value 1.
pub const SECONDARY_GW: Self
pub const SECONDARY_GW: Self
Value 2.
pub const SECONDARY_1X: Self
pub const SECONDARY_1X: Self
Value 3.
pub const NONPROVISIONING_SLOT_1: Self
pub const NONPROVISIONING_SLOT_1: Self
Application that the modem does not use. Needs the AID.
Value 4.
pub const NONPROVISIONING_SLOT_2: Self
pub const NONPROVISIONING_SLOT_2: Self
Value 5.
pub const CARD_ON_SLOT_1: Self
pub const CARD_ON_SLOT_1: Self
The card in slot 1, without an application.
Value 6.
pub const CARD_ON_SLOT_2: Self
pub const CARD_ON_SLOT_2: Self
Value 7.
pub const CHANNEL_ID_SLOT_1: Self
pub const CHANNEL_ID_SLOT_1: Self
Value 8.
pub const CHANNEL_ID_SLOT_2: Self
pub const CHANNEL_ID_SLOT_2: Self
Value 9.
Trait Implementations§
§impl Clone for SessionType
impl Clone for SessionType
§fn clone(&self) -> SessionType
fn clone(&self) -> SessionType
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 SessionType
§impl Debug for SessionType
impl Debug for SessionType
§impl Decode for SessionType
impl Decode for SessionType
§impl Encode for SessionType
impl Encode for SessionType
impl Eq for SessionType
§impl From<SessionType> for u8
impl From<SessionType> for u8
§fn from(value: SessionType) -> Self
fn from(value: SessionType) -> Self
Converts to this type from the input type.
§impl Hash for SessionType
impl Hash for SessionType
§impl PartialEq for SessionType
impl PartialEq for SessionType
impl StructuralPartialEq for SessionType
Auto Trait Implementations§
impl Freeze for SessionType
impl RefUnwindSafe for SessionType
impl Send for SessionType
impl Sync for SessionType
impl Unpin for SessionType
impl UnsafeUnpin for SessionType
impl UnwindSafe for SessionType
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