Struct ReadTransparent
pub struct ReadTransparent<'a> {
pub session: Session<'a>,
pub file: File<'a>,
pub offset: u16,
pub length: u16,
}Expand description
Reads a transparent file (QMI_UIM_READ_TRANSPARENT).
A transparent file is a plain byte string. The modem answers once the card has responded.
If the card refuses the read, the modem returns a failure status and
the status word of the card. ql_qmi::Client::request then returns
ql_qmi::Error::Rejected.
Client::read_transparent checks the
status word and returns Error::Card instead.
Fields§
§session: Session<'a>Session to read in.
file: File<'a>File to read.
offset: u16Offset of the first byte to read.
length: u16Number of bytes to read. Zero reads up to the end of the file.
Implementations§
§impl ReadTransparent<'static>
impl ReadTransparent<'static>
pub const fn iccid(slot: Slot) -> Self
pub const fn iccid(slot: Slot) -> Self
Returns a request for the ICCID file (EF 2FE2) of the card in slot.
pub const fn imsi(app_type: AppType) -> Self
pub const fn imsi(app_type: AppType) -> Self
Returns a request for the IMSI file (EF 6F07) of the application in the primary GSM or UMTS session.
app_type is the type of that application, see
CardStatus::primary_gw_app. The
path is 3F00/7F20 for AppType::SIM and 3F00/7FFF for
AppType::USIM.
Trait Implementations§
§impl<'a> Clone for ReadTransparent<'a>
impl<'a> Clone for ReadTransparent<'a>
§fn clone(&self) -> ReadTransparent<'a>
fn clone(&self) -> ReadTransparent<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more