pub struct Error<T: Debug> {
pub error: Error,
pub instance: T,
}
Expand description
The error returned by various commit(…)
methods
Fields§
§error: Error
The io error that prevented the attempt to succeed
instance: T
The marker or file which was used in the attempt to persist it
Trait Implementations§
source§impl<T: Debug> Error for Error<T>
impl<T: Debug> Error for Error<T>
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()