pub struct RecoverableErrorMetadata {
pub error_code: u32,
pub error_scope: ErrorScope,
pub recovery_action: u16,
pub source_role: u8,
pub flags: u8,
pub retry_after_ms: u32,
pub related_session_id: u32,
pub related_frame_id: u32,
pub related_view_id: u32,
pub diagnostic_bytes: u32,
}Fields§
§error_code: u32§error_scope: ErrorScope§recovery_action: u16§source_role: u8§flags: u8§retry_after_ms: u32§diagnostic_bytes: u32Implementations§
Source§impl RecoverableErrorMetadata
impl RecoverableErrorMetadata
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 RecoverableErrorMetadata
impl Clone for RecoverableErrorMetadata
Source§fn clone(&self) -> RecoverableErrorMetadata
fn clone(&self) -> RecoverableErrorMetadata
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 RecoverableErrorMetadata
Source§impl Debug for RecoverableErrorMetadata
impl Debug for RecoverableErrorMetadata
impl Eq for RecoverableErrorMetadata
Source§impl PartialEq for RecoverableErrorMetadata
impl PartialEq for RecoverableErrorMetadata
impl StructuralPartialEq for RecoverableErrorMetadata
Auto Trait Implementations§
impl Freeze for RecoverableErrorMetadata
impl RefUnwindSafe for RecoverableErrorMetadata
impl Send for RecoverableErrorMetadata
impl Sync for RecoverableErrorMetadata
impl Unpin for RecoverableErrorMetadata
impl UnsafeUnpin for RecoverableErrorMetadata
impl UnwindSafe for RecoverableErrorMetadata
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