pub enum MoqTraceError {
Io(Error),
CborEncode(String),
CborDecode(String),
InvalidMagic,
UnsupportedVersion(u32),
InvalidHeader(String),
InvalidEvent(String),
}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 does not support.
InvalidHeader(String)
Header is missing required fields or contains invalid values.
InvalidEvent(String)
Event has an unknown type or is missing required fields.
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 Freeze for MoqTraceError
impl !RefUnwindSafe for MoqTraceError
impl Send for MoqTraceError
impl Sync for MoqTraceError
impl Unpin for MoqTraceError
impl UnsafeUnpin for MoqTraceError
impl !UnwindSafe 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