Enum roach::ArchiveError
source · pub enum ArchiveError {
Io(Box<dyn Send + Sync + Error>),
Serialize(Box<dyn Send + Sync + Error>),
Deserialize(Box<dyn Send + Sync + Error>),
}Expand description
Describes an error that occurred while interacting with an archive.
Variants§
Io(Box<dyn Send + Sync + Error>)
There was a problem during an interaction with the raw database.
Serialize(Box<dyn Send + Sync + Error>)
There was a problem while serializing data to its archived format.
Deserialize(Box<dyn Send + Sync + Error>)
There was a problem while deserializing data to its in-memory format.
Implementations§
source§impl ArchiveError
impl ArchiveError
sourcepub fn from_io(x: impl 'static + Send + Sync + Error) -> Self
pub fn from_io(x: impl 'static + Send + Sync + Error) -> Self
Creates a new Archive::Io error variant.
sourcepub fn from_serialize(x: impl 'static + Send + Sync + Error) -> Self
pub fn from_serialize(x: impl 'static + Send + Sync + Error) -> Self
Creates a new Archive::Serialize error variant.
sourcepub fn from_deserialize(x: impl 'static + Send + Sync + Error) -> Self
pub fn from_deserialize(x: impl 'static + Send + Sync + Error) -> Self
Creates a new Archive::Deserialize error variant.
Trait Implementations§
source§impl Debug for ArchiveError
impl Debug for ArchiveError
source§impl Display for ArchiveError
impl Display for ArchiveError
source§impl Error for ArchiveError
impl Error for ArchiveError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ArchiveError
impl Send for ArchiveError
impl Sync for ArchiveError
impl Unpin for ArchiveError
impl !UnwindSafe for ArchiveError
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