Enum usage_tracker::UsageTrackerError
source · [−]pub enum UsageTrackerError {
FileLoadErrorRon(Error),
ObjectAlreadyTracked {
name: String,
},
ObjectNeverUsed {
name: String,
},
ObjectNotTracked {
name: String,
},
}
Expand description
All errors the library’s public interface can return.
Variants
FileLoadErrorRon(Error)
The loading (most likely parsing) of a RON file failed. Contains the root cause.
ObjectAlreadyTracked
Fields
name: String
Tried to add a new object to keep track of, but object with same name is already tracked.
ObjectNeverUsed
Fields
name: String
Tried to predict the need of a never used object.
ObjectNotTracked
Fields
name: String
Tried to access an object that is not kept track of.
Trait Implementations
sourceimpl Debug for UsageTrackerError
impl Debug for UsageTrackerError
sourceimpl Display for UsageTrackerError
impl Display for UsageTrackerError
sourceimpl Error for UsageTrackerError
impl Error for UsageTrackerError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn 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 UsageTrackerError
impl Send for UsageTrackerError
impl Sync for UsageTrackerError
impl Unpin for UsageTrackerError
impl UnwindSafe for UsageTrackerError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more