pub enum SnapshotWriterError {
IoError(String),
EncodeError(String),
MappingError(SnapshotMappingError),
Closed,
}Expand description
Errors that can occur during snapshot writing.
Variants§
IoError(String)
I/O error during write.
EncodeError(String)
The snapshot could not be encoded.
MappingError(SnapshotMappingError)
The snapshot violated mapping/parity invariants before encode.
Closed
The writer was closed.
Trait Implementations§
Source§impl Clone for SnapshotWriterError
impl Clone for SnapshotWriterError
Source§fn clone(&self) -> SnapshotWriterError
fn clone(&self) -> SnapshotWriterError
Returns a duplicate 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 SnapshotWriterError
impl Debug for SnapshotWriterError
Source§impl Display for SnapshotWriterError
impl Display for SnapshotWriterError
Source§impl Error for SnapshotWriterError
impl Error for SnapshotWriterError
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 PartialEq for SnapshotWriterError
impl PartialEq for SnapshotWriterError
impl Eq for SnapshotWriterError
impl StructuralPartialEq for SnapshotWriterError
Auto Trait Implementations§
impl Freeze for SnapshotWriterError
impl RefUnwindSafe for SnapshotWriterError
impl Send for SnapshotWriterError
impl Sync for SnapshotWriterError
impl Unpin for SnapshotWriterError
impl UnsafeUnpin for SnapshotWriterError
impl UnwindSafe for SnapshotWriterError
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