pub struct SupersedeMetadata {
pub old_operation_id: u64,
pub new_operation_id: u64,
pub control_sequence: u64,
pub drop_reason_code: u16,
pub flags: u16,
pub diagnostic_bytes: u32,
}Fields§
§old_operation_id: u64§new_operation_id: u64§control_sequence: u64§drop_reason_code: u16§flags: u16§diagnostic_bytes: u32Implementations§
Source§impl SupersedeMetadata
impl SupersedeMetadata
pub fn parse(source: &[u8]) -> Result<Self, NnrpError>
pub fn write(&self, destination: &mut [u8]) -> Result<(), NnrpError>
pub fn to_bytes(&self) -> Result<[u8; 32], NnrpError>
pub fn parse_with_diagnostics(source: &[u8]) -> Result<(Self, &[u8]), NnrpError>
pub fn to_vec_with_diagnostics( &self, diagnostics: &[u8], ) -> Result<Vec<u8>, NnrpError>
Trait Implementations§
Source§impl Clone for SupersedeMetadata
impl Clone for SupersedeMetadata
Source§fn clone(&self) -> SupersedeMetadata
fn clone(&self) -> SupersedeMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SupersedeMetadata
Source§impl Debug for SupersedeMetadata
impl Debug for SupersedeMetadata
impl Eq for SupersedeMetadata
Source§impl PartialEq for SupersedeMetadata
impl PartialEq for SupersedeMetadata
impl StructuralPartialEq for SupersedeMetadata
Auto Trait Implementations§
impl Freeze for SupersedeMetadata
impl RefUnwindSafe for SupersedeMetadata
impl Send for SupersedeMetadata
impl Sync for SupersedeMetadata
impl Unpin for SupersedeMetadata
impl UnsafeUnpin for SupersedeMetadata
impl UnwindSafe for SupersedeMetadata
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