pub enum GetResponse {
Normal {
invoke_id_and_priority: u8,
result: GetDataResult,
},
WithDataBlock {
invoke_id_and_priority: u8,
last_block: bool,
block_number: u32,
raw_data: Result<Vec<u8>, u8>,
},
WithList {
invoke_id_and_priority: u8,
results: Vec<GetDataResult>,
},
}Expand description
A GET-Response APDU.
Variants§
Normal
GET-RESPONSE-NORMAL: the full result fits in a single APDU.
Fields
§
result: GetDataResultThe result (value or data-access-result).
WithDataBlock
GET-RESPONSE-WITH-DATABLOCK: one block of a longer result.
Fields
WithList
GET-RESPONSE-WITH-LIST: one result per requested attribute.
Fields
§
results: Vec<GetDataResult>One result per attribute of the request, in order.
Implementations§
Source§impl GetResponse
impl GetResponse
Sourcepub fn decode(bytes: &[u8]) -> Result<GetResponse, ServiceError>
pub fn decode(bytes: &[u8]) -> Result<GetResponse, ServiceError>
Decodes a response APDU.
Trait Implementations§
Source§impl Clone for GetResponse
impl Clone for GetResponse
Source§fn clone(&self) -> GetResponse
fn clone(&self) -> GetResponse
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 GetResponse
impl Debug for GetResponse
Source§impl PartialEq for GetResponse
impl PartialEq for GetResponse
impl StructuralPartialEq for GetResponse
Auto Trait Implementations§
impl Freeze for GetResponse
impl RefUnwindSafe for GetResponse
impl Send for GetResponse
impl Sync for GetResponse
impl Unpin for GetResponse
impl UnsafeUnpin for GetResponse
impl UnwindSafe for GetResponse
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