pub struct Segment<'a> {
pub apdu_type: ApduType,
pub more_follows: bool,
pub invoke_id: u8,
pub sequence_number: u8,
pub window_size: u8,
pub service_choice: u8,
pub data: Vec<u8>,
/* private fields */
}Fields§
§apdu_type: ApduType§more_follows: bool§invoke_id: u8§sequence_number: u8§window_size: u8§service_choice: u8§data: Vec<u8>Implementations§
Source§impl<'a> Segment<'a>
impl<'a> Segment<'a>
pub fn new( apdu_type: ApduType, more_follows: bool, invoke_id: u8, sequence_number: u8, window_size: u8, service_choice: u8, data: Vec<u8>, ) -> Self
pub fn decode( more_follows: bool, apdu_type: ApduType, reader: &mut Reader, buf: &[u8], ) -> Result<Self, Error>
pub fn encode(&self, writer: &mut Writer<'_>)
pub fn encode_for_accumulation(&self, writer: &mut Writer<'_>) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Segment<'a>
impl<'a> RefUnwindSafe for Segment<'a>
impl<'a> Send for Segment<'a>
impl<'a> Sync for Segment<'a>
impl<'a> Unpin for Segment<'a>
impl<'a> UnwindSafe for Segment<'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