Skip to main content

Module pdu

Module pdu 

Source
Expand description

Protocol Data Unit module

This module comprises multiple data structures representing possible protocol data units (PDUs) according to the standard message exchange mechanisms, as well as readers and writers of PDUs from arbitrary data sources.

Re-exports§

pub use reader::read_pdu;
pub use writer::write_pdu;
pub use writer::WriteChunkError;

Modules§

reader
writer

Structs§

AssociationAC
An in-memory representation of an association acknowledgement
AssociationRJ
An in-memory representation of an association rejection.
AssociationRQ
An in-memory representation of an association request
PDataValue
PresentationContextNegotiated
Result of the presentation context negotiation, including the abstract syntax that corresponds to each presentation context.
PresentationContextProposed
Message component for a proposed presentation context.
PresentationContextResult
Message component for the result of the presentation context negotiation.
UserIdentity

Enums§

AbortRQServiceProviderReason
An enumeration of supported A-ABORT PDU provider reasons.
AbortRQSource
AssociationRJResult
AssociationRJServiceProviderASCEReason
AssociationRJServiceProviderPresentationReason
AssociationRJServiceUserReason
AssociationRJSource
PDataValueType
Pdu
An in-memory representation of a full Protocol Data Unit (PDU).
PduVariableItem
PresentationContextResultReason
ReadError
UserIdentityType
UserVariableItem
WriteError

Constants§

DEFAULT_MAX_PDU
The default maximum PDU size
MINIMUM_PDU_SIZE
The smallest maximum PDU length negotiable by this implementation
PDU_HEADER_SIZE
The length of the PDU header in bytes, comprising the PDU type (1 byte), reserved byte (1 byte), and PDU length (4 bytes).
PDV_HEADER_SIZE
The length of a PDV header + message control header in bytes, comprising the PDV length (4 bytes), presentation context ID (1 byte), and the flags that precede the data (1 byte).