pub enum Pdu {
Unknown {
pdu_type: u8,
data: Vec<u8>,
},
AssociationRQ(AssociationRQ),
AssociationAC(AssociationAC),
AssociationRJ(AssociationRJ),
PData {
data: Vec<PDataValue>,
},
ReleaseRQ,
ReleaseRP,
AbortRQ {
source: AbortRQSource,
},
}
Expand description
An in-memory representation of a full Protocol Data Unit (PDU).
Variants§
Unknown
Unrecognized PDU type
AssociationRQ(AssociationRQ)
Association request (A-ASSOCIATION-RQ)
AssociationAC(AssociationAC)
Association acknowledgement (A-ASSOCIATION-AC)
AssociationRJ(AssociationRJ)
Association rejection (A-ASSOCIATION-RJ)
PData
P-Data
Fields
§
data: Vec<PDataValue>
ReleaseRQ
Association release request (A-RELEASE-RQ)
ReleaseRP
Association release reply (A-RELEASE-RP)
AbortRQ
Association abort request (A-ABORT-RQ)
Fields
§
source: AbortRQSource
Implementations§
Trait Implementations§
Source§impl From<AssociationAC> for Pdu
impl From<AssociationAC> for Pdu
Source§fn from(value: AssociationAC) -> Self
fn from(value: AssociationAC) -> Self
Converts to this type from the input type.
Source§impl From<AssociationRJ> for Pdu
impl From<AssociationRJ> for Pdu
Source§fn from(value: AssociationRJ) -> Self
fn from(value: AssociationRJ) -> Self
Converts to this type from the input type.
Source§impl From<AssociationRQ> for Pdu
impl From<AssociationRQ> for Pdu
Source§fn from(value: AssociationRQ) -> Self
fn from(value: AssociationRQ) -> Self
Converts to this type from the input type.
Source§impl PartialOrd for Pdu
impl PartialOrd for Pdu
impl Eq for Pdu
impl StructuralPartialEq for Pdu
Auto Trait Implementations§
impl Freeze for Pdu
impl RefUnwindSafe for Pdu
impl Send for Pdu
impl Sync for Pdu
impl Unpin for Pdu
impl UnwindSafe for Pdu
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more