pub enum SalamanderError {
Show 25 variants
InvalidArgument(String),
Io(Error),
Corrupt {
offset: u64,
reason: String,
},
OffsetBeyondHead(u64),
Manifest(String),
UnsupportedFormat {
found: u32,
supported: u32,
},
UnsupportedStorageFormat {
found: u32,
supported: u32,
},
InvalidSegmentName(String),
NamespaceExists(String),
Locked(String),
Serialization(String),
InvalidFormat(String),
Codec(String),
ResourceLimit {
resource: &'static str,
actual: u64,
maximum: u64,
},
Migration(String),
MigrationIncomplete(String),
RevisionConflict {
expected: String,
actual: String,
},
EventIdConflict,
IdempotencyConflict,
BatchIdConflict,
BranchNotFound(String),
BranchExists(String),
BranchArchived(String),
InvalidBranchAncestry(String),
NotBatchBoundary(u64),
}Expand description
The error type returned by every fallible operation in this crate.
Each variant’s Display output (from the thiserror #[error("…")]
attribute) documents what it means; callers that need to branch on a
failure should match on the variant rather than parse the message,
which is not a stable API.
Variants§
InvalidArgument(String)
Io(Error)
Corrupt
OffsetBeyondHead(u64)
Manifest(String)
UnsupportedFormat
UnsupportedStorageFormat
InvalidSegmentName(String)
NamespaceExists(String)
Locked(String)
Serialization(String)
InvalidFormat(String)
Codec(String)
ResourceLimit
Migration(String)
MigrationIncomplete(String)
RevisionConflict
EventIdConflict
IdempotencyConflict
BatchIdConflict
BranchNotFound(String)
BranchExists(String)
BranchArchived(String)
InvalidBranchAncestry(String)
NotBatchBoundary(u64)
Trait Implementations§
Source§impl Debug for SalamanderError
impl Debug for SalamanderError
Source§impl Display for SalamanderError
impl Display for SalamanderError
Source§impl Error for SalamanderError
impl Error for SalamanderError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SalamanderError
impl !UnwindSafe for SalamanderError
impl Freeze for SalamanderError
impl Send for SalamanderError
impl Sync for SalamanderError
impl Unpin for SalamanderError
impl UnsafeUnpin for SalamanderError
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