Struct File
pub struct File<'a> {
id: u16,
path: &'a [u16],
path_len: u8,
}Expand description
File to access (uim_file_id_type_v01).
Fields§
§id: u16§path: &'a [u16]§path_len: u8Length of the path in bytes, which is the length prefix on the wire.
Implementations§
§impl<'a> File<'a>
impl<'a> File<'a>
pub const MAX_PATH: usize = 5
pub const MAX_PATH: usize = 5
Maximum number of directory IDs in a path. QMI_UIM_PATH_MAX_V01 is
10 bytes.
const ICCID: File<'static>
const IMSI_SIM: File<'static>
const IMSI_USIM: File<'static>
pub fn new(id: u16, path: &'a [u16]) -> Result<Self, Error>
pub fn new(id: u16, path: &'a [u16]) -> Result<Self, Error>
Returns a file.
path lists the IDs of the directories that lead to the file.
[0x3F00, 0x7FFF] is the master file and the USIM directory.
§Errors
Returns Error::TooManyPathIds if path has more than
Self::MAX_PATH IDs.
Trait Implementations§
impl<'a> Copy for File<'a>
impl<'a> Eq for File<'a>
impl<'a> StructuralPartialEq for File<'a>
Auto Trait Implementations§
impl<'a> Freeze for File<'a>
impl<'a> RefUnwindSafe for File<'a>
impl<'a> Send for File<'a>
impl<'a> Sync for File<'a>
impl<'a> Unpin for File<'a>
impl<'a> UnsafeUnpin for File<'a>
impl<'a> UnwindSafe for File<'a>
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