pub struct GeneralBlockTransfer {
pub last_block: bool,
pub streaming: bool,
pub window: u8,
pub block_number: u16,
pub block_number_ack: u16,
pub block_data: Vec<u8>,
}Expand description
A general-block-transfer APDU.
Fields§
§last_block: boolWhether this is the last block.
streaming: boolWhether streaming is in use.
window: u8Window size (0..63): the number of blocks that may be sent before an ack.
block_number: u16Number of this block.
block_number_ack: u16Number of the last block acknowledged by the peer.
block_data: Vec<u8>This block’s fragment of the embedded APDU.
Implementations§
Trait Implementations§
Source§impl Clone for GeneralBlockTransfer
impl Clone for GeneralBlockTransfer
Source§fn clone(&self) -> GeneralBlockTransfer
fn clone(&self) -> GeneralBlockTransfer
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 moreSource§impl Debug for GeneralBlockTransfer
impl Debug for GeneralBlockTransfer
impl Eq for GeneralBlockTransfer
Source§impl PartialEq for GeneralBlockTransfer
impl PartialEq for GeneralBlockTransfer
impl StructuralPartialEq for GeneralBlockTransfer
Auto Trait Implementations§
impl Freeze for GeneralBlockTransfer
impl RefUnwindSafe for GeneralBlockTransfer
impl Send for GeneralBlockTransfer
impl Sync for GeneralBlockTransfer
impl Unpin for GeneralBlockTransfer
impl UnsafeUnpin for GeneralBlockTransfer
impl UnwindSafe for GeneralBlockTransfer
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