pub struct ConfirmedRequest {
pub segmented: bool,
pub more_follows: bool,
pub segmented_response_accepted: bool,
pub max_segments: Option<u8>,
pub max_apdu_length: u16,
pub invoke_id: u8,
pub sequence_number: Option<u8>,
pub proposed_window_size: Option<u8>,
pub service_choice: ConfirmedServiceChoice,
pub service_request: Bytes,
}Expand description
Confirmed-Request PDU (Clause 20.1.2).
Fields§
§segmented: boolSet when this PDU is one segment of a segmented request; adds the sequence and window fields.
more_follows: boolSet on every segment except the last one of a segmented request.
segmented_response_accepted: boolWhether the requester can receive the reply as a segmented message.
max_segments: Option<u8>Most segments the requester will accept in a reply; None leaves the limit unspecified.
Must be None or at least 2; the 3-bit wire field rounds down to 2, 4, 8, 16, 32 or 64, and
anything above 64 encodes as “more than 64”.
max_apdu_length: u16Largest APDU, in octets, the requester can receive; must be 50, 128, 206, 480, 1024 or 1476.
invoke_id: u8Identifier the requester uses to match the reply to this request.
sequence_number: Option<u8>Segment number within a segmented request; None for unsegmented PDUs. None on a
segmented PDU encodes as 0.
proposed_window_size: Option<u8>Proposed window: how many segments the sender will transmit per SegmentACK (1..=127);
None for unsegmented PDUs. None on a segmented PDU encodes as 1.
service_choice: ConfirmedServiceChoiceWhich confirmed service is being requested.
service_request: BytesRaw encoded service request parameters (the bytes after the header).