pub enum Error {
Cxx(Exception),
IO(Error),
PoisonedMutex,
LayerStopped,
TimedOut,
FlushFailed,
}
Expand description
Generic error from the Perfetto SDK
Variants§
Cxx(Exception)
A generic C++ exception occurred in the C++ code.
IO(Error)
A generic OS-level IO error occurred.
PoisonedMutex
An internal Mutex
is poisoned due to some other thread panicking while
holding the mutex.
LayerStopped
An operation can’t complete because someone already called
layer.stop()
on the layer.
TimedOut
An operation timed out according to one of the timeouts set in the layer builder.
FlushFailed
A flush failed due to some unknown reason.
This is not necessarily separate from the TimedOut
case; we simply
don’t know the reason why the flush failed.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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