#[non_exhaustive]pub enum TraceError {
BadEnv {
var: &'static str,
value: String,
expected: &'static str,
},
NewerFormat {
found: u32,
supported: u32,
writer: String,
},
MissingBlob(BlobHash),
Io(Error),
Corrupt(String),
MissingMember(&'static str),
BadMember {
member: String,
line: Option<usize>,
reason: String,
},
BlobMismatch {
member: String,
found: BlobHash,
},
Png(String),
BadSourcePath(String),
}Expand description
Everything that can go wrong configuring, writing or reading a trace.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadEnv
An environment variable holds a value the configuration cannot use.
Fields
NewerFormat
The trace was written in a format this reader does not know.
Fields
MissingBlob(BlobHash)
A step refers to a blob the archive does not hold.
Io(Error)
Reading or writing failed.
Corrupt(String)
The bytes are not a readable zip archive, or a member cannot be decompressed.
MissingMember(&'static str)
The archive lacks a member every trace has.
BadMember
A member holds something other than what the format says it holds.
Fields
BlobMismatch
A blob’s content does not hash to its name.
Fields
Png(String)
Bytes given as a PNG are not one, or a frame could not be encoded.
BadSourcePath(String)
A source file path that cannot be stored under source/.
Trait Implementations§
Source§impl Debug for TraceError
impl Debug for TraceError
Source§impl Display for TraceError
impl Display for TraceError
Source§impl Error for TraceError
impl Error for TraceError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for TraceError
impl !UnwindSafe for TraceError
impl Forget for TraceError
impl Freeze for TraceError
impl Move for TraceError
impl Send for TraceError
impl Sync for TraceError
impl Unpin for TraceError
impl UnsafeUnpin for TraceErrorwhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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