pub enum Apdu {
ConfirmedRequest {
segmented: bool,
more_follows: bool,
segmented_response_accepted: bool,
max_segments: MaxSegments,
max_response_size: MaxApduSize,
invoke_id: u8,
sequence_number: Option<u8>,
proposed_window_size: Option<u8>,
service_choice: ConfirmedServiceChoice,
service_data: Vec<u8>,
},
UnconfirmedRequest {
service_choice: UnconfirmedServiceChoice,
service_data: Vec<u8>,
},
SimpleAck {
invoke_id: u8,
service_choice: u8,
},
ComplexAck {
segmented: bool,
more_follows: bool,
invoke_id: u8,
sequence_number: Option<u8>,
proposed_window_size: Option<u8>,
service_choice: ConfirmedServiceChoice,
service_data: Vec<u8>,
},
SegmentAck {
negative: bool,
server: bool,
invoke_id: u8,
sequence_number: u8,
window_size: u8,
},
Error {
invoke_id: u8,
service_choice: ConfirmedServiceChoice,
error_class: u8,
error_code: u8,
},
Reject {
invoke_id: u8,
reject_reason: RejectReason,
},
Abort {
server: bool,
invoke_id: u8,
abort_reason: u8,
},
}Expand description
Application Protocol Data Unit
Variants§
ConfirmedRequest
Confirmed service request
Fields
§
max_segments: MaxSegments§
max_response_size: MaxApduSize§
service_choice: ConfirmedServiceChoiceUnconfirmedRequest
Unconfirmed service request
SimpleAck
Simple acknowledgment
ComplexAck
Complex acknowledgment
Fields
§
service_choice: ConfirmedServiceChoiceSegmentAck
Segment acknowledgment
Error
Error PDU
Reject
Reject PDU
Abort
Abort PDU
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Apdu
impl RefUnwindSafe for Apdu
impl Send for Apdu
impl Sync for Apdu
impl Unpin for Apdu
impl UnsafeUnpin for Apdu
impl UnwindSafe for Apdu
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