pub struct RetryAfterMetadata {
pub scope_id: u64,
pub control_sequence: u64,
pub retry_after_ms: u32,
pub jitter_ms: u32,
pub reason_code: u16,
pub source_role: u8,
pub flags: u8,
pub diagnostic_bytes: u32,
}Fields§
§scope_id: u64§control_sequence: u64§retry_after_ms: u32§jitter_ms: u32§reason_code: u16§source_role: u8§flags: u8§diagnostic_bytes: u32Implementations§
Source§impl RetryAfterMetadata
impl RetryAfterMetadata
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 RetryAfterMetadata
impl Clone for RetryAfterMetadata
Source§fn clone(&self) -> RetryAfterMetadata
fn clone(&self) -> RetryAfterMetadata
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 RetryAfterMetadata
Source§impl Debug for RetryAfterMetadata
impl Debug for RetryAfterMetadata
impl Eq for RetryAfterMetadata
Source§impl PartialEq for RetryAfterMetadata
impl PartialEq for RetryAfterMetadata
impl StructuralPartialEq for RetryAfterMetadata
Auto Trait Implementations§
impl Freeze for RetryAfterMetadata
impl RefUnwindSafe for RetryAfterMetadata
impl Send for RetryAfterMetadata
impl Sync for RetryAfterMetadata
impl Unpin for RetryAfterMetadata
impl UnsafeUnpin for RetryAfterMetadata
impl UnwindSafe for RetryAfterMetadata
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