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§
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
- PData
Value - Presentation
Context Negotiated - Result of the presentation context negotiation, including the abstract syntax that corresponds to each presentation context.
- Presentation
Context Proposed - Message component for a proposed presentation context.
- Presentation
Context Result - Message component for the result of the presentation context negotiation.
- User
Identity
Enums§
- AbortRQ
Service Provider Reason - An enumeration of supported A-ABORT PDU provider reasons.
- AbortRQ
Source - AssociationRJ
Result - AssociationRJ
Service ProviderASCE Reason - AssociationRJ
Service Provider Presentation Reason - AssociationRJ
Service User Reason - AssociationRJ
Source - PData
Value Type - Pdu
- An in-memory representation of a full Protocol Data Unit (PDU).
- PduVariable
Item - Presentation
Context Result Reason - Read
Error - User
Identity Type - User
Variable Item - Write
Error
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).