Enum vsmtp_common::Error
pub enum Error {
Conversion {},
BadState(FieldAccessError),
}
Expand description
Variants§
Conversion
Fields
Error produce when converting the state to another after a command
BadState(FieldAccessError)
Error produce when accessing a field not available in the current state
Trait Implementations§
§impl Error for Error
impl Error for Error
§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()
§impl From<FieldAccessError> for Error
impl From<FieldAccessError> for Error
§fn from(source: FieldAccessError) -> Self
fn from(source: FieldAccessError) -> Self
Converts to this type from the input type.