pub enum ProfileError {
Unknown {
reason: String,
backtrace: BackTrace,
},
NotRegistered {
backtrace: BackTrace,
},
Launch(LaunchError),
Execution(ExecutionError),
}Expand description
An error during profiling.
Variants§
Unknown
An unknown error happened during profiling
NotRegistered
No profiling was registered
Launch(LaunchError)
A launch error happened during profiling
Execution(ExecutionError)
An execution error happened during profiling
Trait Implementations§
Source§impl Clone for ProfileError
impl Clone for ProfileError
Source§fn clone(&self) -> ProfileError
fn clone(&self) -> ProfileError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileError
impl Debug for ProfileError
Source§impl Display for ProfileError
impl Display for ProfileError
Source§impl Error for ProfileError
impl Error for ProfileError
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 From<ExecutionError> for ProfileError
impl From<ExecutionError> for ProfileError
Source§fn from(source: ExecutionError) -> ProfileError
fn from(source: ExecutionError) -> ProfileError
Converts to this type from the input type.
Source§impl From<LaunchError> for ProfileError
impl From<LaunchError> for ProfileError
Source§fn from(source: LaunchError) -> ProfileError
fn from(source: LaunchError) -> ProfileError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProfileError
impl RefUnwindSafe for ProfileError
impl Send for ProfileError
impl Sync for ProfileError
impl Unpin for ProfileError
impl UnwindSafe for ProfileError
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