pub struct PduHeader {
pub protocol_version: ProtocolVersion,
pub exercise_id: u8,
pub pdu_type: PduType,
pub protocol_family: ProtocolFamily,
pub timestamp: u32,
pub length: u16,
pub status_record: PduStatusRecord,
}Fields§
§protocol_version: ProtocolVersionThe version of the protocol
exercise_id: u8Exercise ID
pdu_type: PduTypeType of PDU, unique for each PDU class
protocol_family: ProtocolFamilyValue that refers to the protocol family
timestamp: u32Timestamp value
length: u16Length, in bytes, of the PDU
status_record: PduStatusRecordPDU status record
Implementations§
Trait Implementations§
Source§impl FieldDeserialize for PduHeader
impl FieldDeserialize for PduHeader
fn deserialize_field<B: Buf>(buf: &mut B) -> Self
Source§impl FieldSerialize for PduHeader
impl FieldSerialize for PduHeader
fn serialize_field(&self, buf: &mut BytesMut)
Source§impl GenericHeader for PduHeader
impl GenericHeader for PduHeader
fn pdu_type(&self) -> PduType
fn set_pdu_type(&mut self, value: PduType)
fn protocol_family(&self) -> ProtocolFamily
fn set_protocol_family(&mut self, value: ProtocolFamily)
fn length(&self) -> u16
fn set_length(&mut self, value: u16)
fn serialize(&self, buf: &mut BytesMut)
fn deserialize<B: Buf>(buf: &mut B) -> Self
impl Copy for PduHeader
impl Eq for PduHeader
impl StructuralPartialEq for PduHeader
Auto Trait Implementations§
impl Freeze for PduHeader
impl RefUnwindSafe for PduHeader
impl Send for PduHeader
impl Sync for PduHeader
impl Unpin for PduHeader
impl UnwindSafe for PduHeader
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