pub enum ActionResponse {
Normal {
invoke_id_and_priority: u8,
result: u8,
return_parameters: Option<GetDataResult>,
},
WithPblock {
invoke_id_and_priority: u8,
datablock: DataBlockSa,
},
NextPblock {
invoke_id_and_priority: u8,
block_number: u32,
},
WithList {
invoke_id_and_priority: u8,
results: Vec<(u8, Option<GetDataResult>)>,
},
}Expand description
An ACTION-Response APDU.
Variants§
Normal
ACTION-RESPONSE-NORMAL: action-result plus optional return parameters.
Fields
§
return_parameters: Option<GetDataResult>The method’s return data, if any.
WithPblock
ACTION-RESPONSE-WITH-PBLOCK: one block of the return parameters.
Fields
§
datablock: DataBlockSaOne block of the return parameters.
NextPblock
ACTION-RESPONSE-NEXT-PBLOCK: acknowledge a request block and ask for the next.
Fields
WithList
ACTION-RESPONSE-WITH-LIST: one action-result (plus optional return data) per invoked method.
Implementations§
Source§impl ActionResponse
impl ActionResponse
Sourcepub fn decode(bytes: &[u8]) -> Result<ActionResponse, ServiceError>
pub fn decode(bytes: &[u8]) -> Result<ActionResponse, ServiceError>
Decodes a response APDU.
Trait Implementations§
Source§impl Clone for ActionResponse
impl Clone for ActionResponse
Source§fn clone(&self) -> ActionResponse
fn clone(&self) -> ActionResponse
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 ActionResponse
impl Debug for ActionResponse
Source§impl PartialEq for ActionResponse
impl PartialEq for ActionResponse
impl StructuralPartialEq for ActionResponse
Auto Trait Implementations§
impl Freeze for ActionResponse
impl RefUnwindSafe for ActionResponse
impl Send for ActionResponse
impl Sync for ActionResponse
impl Unpin for ActionResponse
impl UnsafeUnpin for ActionResponse
impl UnwindSafe for ActionResponse
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