pub enum MoqTraceError {
Io(Error),
CborEncode(String),
CborDecode(String),
InvalidMagic,
UnsupportedVersion(u32),
InvalidHeader(String),
InvalidEvent(String),
Truncated {
offset: u64,
},
}Expand description
Errors that can occur when reading or writing .moqtrace files.
Variants§
Io(Error)
I/O error from the underlying reader or writer.
CborEncode(String)
CBOR encoding error.
CborDecode(String)
CBOR decoding error.
InvalidMagic
File does not start with the expected MOQTRACE magic bytes.
UnsupportedVersion(u32)
File declares a format version this library cannot read.
InvalidHeader(String)
Header is missing required fields or contains invalid values.
InvalidEvent(String)
Event has an unknown type or is missing required fields.
Truncated
The stream ended part-way through an item — the file was truncated by a crashed recorder or an interrupted transfer.
Everything decoded before offset is valid and should be kept. Callers
holding a seekable or resumable source can look for the next segment
with resync_to_next_segment.
Trait Implementations§
Source§impl Debug for MoqTraceError
impl Debug for MoqTraceError
Source§impl Display for MoqTraceError
impl Display for MoqTraceError
Source§impl Error for MoqTraceError
impl Error for MoqTraceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<T: Debug> From<Error<T>> for MoqTraceError
impl<T: Debug> From<Error<T>> for MoqTraceError
Source§impl<T: Debug> From<Error<T>> for MoqTraceError
impl<T: Debug> From<Error<T>> for MoqTraceError
Auto Trait Implementations§
impl !RefUnwindSafe for MoqTraceError
impl !UnwindSafe for MoqTraceError
impl Freeze for MoqTraceError
impl Send for MoqTraceError
impl Sync for MoqTraceError
impl Unpin for MoqTraceError
impl UnsafeUnpin for MoqTraceError
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