Enum memento::MementoError
source · pub enum MementoError {
TooLongKey(String),
ConnectionReset,
InvalidItem(String),
IoError(String),
InvalidIntegerValue(String),
InvalidStat(String),
}
Variants§
TooLongKey(String)
ConnectionReset
InvalidItem(String)
IoError(String)
InvalidIntegerValue(String)
InvalidStat(String)
Trait Implementations§
source§impl Clone for MementoError
impl Clone for MementoError
source§fn clone(&self) -> MementoError
fn clone(&self) -> MementoError
Returns a copy 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 MementoError
impl Debug for MementoError
source§impl Display for MementoError
impl Display for MementoError
source§impl Error for MementoError
impl Error for MementoError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for MementoError
impl From<Error> for MementoError
source§impl From<ParseIntError> for MementoError
impl From<ParseIntError> for MementoError
source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
source§impl PartialEq<MementoError> for MementoError
impl PartialEq<MementoError> for MementoError
source§fn eq(&self, other: &MementoError) -> bool
fn eq(&self, other: &MementoError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.