pub enum Warning {
TruncatedTail {
offset: u64,
},
BadNavigation {
record: usize,
error: PickleError,
},
UnreadableSource {
path: String,
reason: String,
},
}Expand description
A non-fatal decode anomaly. The model is still usable; warnings record where and why something was skipped so nothing fails silently.
Variants§
TruncatedTail
The stream ended early at this byte offset: a zero size marker or a record whose declared size runs past EOF. Normal — Brave appends to live files, so the final record can be half-written. Parsing stops cleanly here.
A navigation record (at this index in the stream) failed to decode and was skipped during replay. Surfaced, never silently dropped.
UnreadableSource
A session file in the profile directory could not be read or decoded. The other sources remain usable; this records which file and why.
Trait Implementations§
impl Eq for Warning
impl StructuralPartialEq for Warning
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnsafeUnpin for Warning
impl UnwindSafe for Warning
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