pub struct SessionNumber {
pub session_nb: u16,
}Expand description
session_number() (Table 13) — length=2. Precedes an SPDU body of APDUs;
this models only the header (the trailing APDU body is parsed separately by
the caller with AnyApdu).
Fields§
§session_nb: u16session_nb the following APDUs belong to.
Implementations§
Source§impl SessionNumber
impl SessionNumber
Sourcepub const HEADER_LEN: usize = 4
pub const HEADER_LEN: usize = 4
Header length in bytes (spdu_tag + length_field=2 + session_nb) =
the offset at which the trailing APDU body begins.
Trait Implementations§
Source§impl Clone for SessionNumber
impl Clone for SessionNumber
Source§fn clone(&self) -> SessionNumber
fn clone(&self) -> SessionNumber
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 SessionNumber
Source§impl Debug for SessionNumber
impl Debug for SessionNumber
impl Eq for SessionNumber
Source§impl<'a> Parse<'a> for SessionNumber
impl<'a> Parse<'a> for SessionNumber
Source§impl PartialEq for SessionNumber
impl PartialEq for SessionNumber
Source§impl Serialize for SessionNumber
Available on crate feature serde only.
impl Serialize for SessionNumber
Available on crate feature
serde only.Source§impl Serialize for SessionNumber
impl Serialize for SessionNumber
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for SessionNumber
Auto Trait Implementations§
impl Freeze for SessionNumber
impl RefUnwindSafe for SessionNumber
impl Send for SessionNumber
impl Sync for SessionNumber
impl Unpin for SessionNumber
impl UnsafeUnpin for SessionNumber
impl UnwindSafe for SessionNumber
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