pub struct MaxApdu(/* private fields */);Expand description
The max-APDU-length-accepted field of a Confirmed-Request (Clause 20.1.2.5): one of six sizes, 50 (MinimumMessageSize), 128, 206, 480, 1024 and 1476 octets. The other ten codes are reserved.
Implementations§
Source§impl MaxApdu
impl MaxApdu
Sourcepub const OCTETS_128: Self
pub const OCTETS_128: Self
Up to 128 octets.
Sourcepub const OCTETS_206: Self
pub const OCTETS_206: Self
Up to 206 octets.
Sourcepub const OCTETS_480: Self
pub const OCTETS_480: Self
Up to 480 octets.
Sourcepub const OCTETS_1024: Self
pub const OCTETS_1024: Self
Up to 1024 octets.
Sourcepub const OCTETS_1476: Self
pub const OCTETS_1476: Self
Up to 1476 octets, or more.
Sourcepub const fn from_octets(octets: u16) -> Option<Self>
pub const fn from_octets(octets: u16) -> Option<Self>
The field naming exactly octets, or None for a size it doesn’t
name.
Sourcepub const fn at_or_below(capacity: u32) -> Option<Self>
pub const fn at_or_below(capacity: u32) -> Option<Self>
The largest size the field names that is at most capacity octets;
None below 50.
Trait Implementations§
impl Copy for MaxApdu
impl Eq for MaxApdu
impl StructuralPartialEq for MaxApdu
Auto Trait Implementations§
impl Freeze for MaxApdu
impl RefUnwindSafe for MaxApdu
impl Send for MaxApdu
impl Sync for MaxApdu
impl Unpin for MaxApdu
impl UnsafeUnpin for MaxApdu
impl UnwindSafe for MaxApdu
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