pub struct StatsError(/* private fields */);
Expand description
Any error from this library
Implementations§
Source§impl StatsError
impl StatsError
pub fn new(msg: String) -> StatsError
Trait Implementations§
Source§impl Debug for StatsError
impl Debug for StatsError
Source§impl Display for StatsError
impl Display for StatsError
Source§impl Error for StatsError
impl Error for StatsError
1.30.0 · 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<'a> From<&'a str> for StatsError
impl<'a> From<&'a str> for StatsError
Source§fn from(msg: &'a str) -> StatsError
fn from(msg: &'a str) -> StatsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StatsError
impl RefUnwindSafe for StatsError
impl Send for StatsError
impl Sync for StatsError
impl Unpin for StatsError
impl UnwindSafe for StatsError
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