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
Tried to add a new object to keep track of, but object with same name is already tracked.
ObjectNeverUsed
Tried to predict the need of a never used object.
ObjectNotTracked
Tried to access an object that is not kept track of.
Trait Implementations§
Source§impl Debug for UsageTrackerError
impl Debug for UsageTrackerError
Source§impl Display for UsageTrackerError
impl Display for UsageTrackerError
Source§impl Error for UsageTrackerError
impl Error for UsageTrackerError
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 UsageTrackerError
impl RefUnwindSafe for UsageTrackerError
impl Send for UsageTrackerError
impl Sync for UsageTrackerError
impl Unpin for UsageTrackerError
impl UnwindSafe for UsageTrackerError
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