pub enum DumpError {
Identify(IdentifyError),
Open(Error),
Serialize(SerializeError),
Flush(Error),
}
Expand description
Error type returned by dump()
and Cfgfifo::dump()
Variants§
Identify(IdentifyError)
Returned if the file format could not be identified from the file extension
Open(Error)
Returned if the file could not be opened for writing
Serialize(SerializeError)
Returned if serialization failed
Flush(Error)
Returned if flushing the file failed after writing
Trait Implementations§
Source§impl Error for DumpError
impl Error for DumpError
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 From<IdentifyError> for DumpError
impl From<IdentifyError> for DumpError
Source§fn from(source: IdentifyError) -> Self
fn from(source: IdentifyError) -> Self
Converts to this type from the input type.
Source§impl From<SerializeError> for DumpError
impl From<SerializeError> for DumpError
Source§fn from(source: SerializeError) -> Self
fn from(source: SerializeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DumpError
impl !RefUnwindSafe for DumpError
impl Send for DumpError
impl Sync for DumpError
impl Unpin for DumpError
impl !UnwindSafe for DumpError
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