pub struct LeniencyEvent {
pub code: &'static str,
pub severity: LeniencySeverity,
pub message: &'static str,
}Expand description
A single decode-leniency or structural-recovery event.
All fields are 'static — no heap allocation on the emit path.
Fields§
§code: &'static strShort, stable, machine-readable identifier (e.g. "FLATE_BROKEN_FALLBACK").
severity: LeniencySeveritySeverity classification.
message: &'static strHuman-readable description of the event.
Trait Implementations§
Source§impl Clone for LeniencyEvent
impl Clone for LeniencyEvent
Source§fn clone(&self) -> LeniencyEvent
fn clone(&self) -> LeniencyEvent
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 moreSource§impl Debug for LeniencyEvent
impl Debug for LeniencyEvent
impl Eq for LeniencyEvent
Source§impl PartialEq for LeniencyEvent
impl PartialEq for LeniencyEvent
Source§fn eq(&self, other: &LeniencyEvent) -> bool
fn eq(&self, other: &LeniencyEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeniencyEvent
Auto Trait Implementations§
impl Freeze for LeniencyEvent
impl RefUnwindSafe for LeniencyEvent
impl Send for LeniencyEvent
impl Sync for LeniencyEvent
impl Unpin for LeniencyEvent
impl UnsafeUnpin for LeniencyEvent
impl UnwindSafe for LeniencyEvent
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