#[non_exhaustive]pub enum MongrelError {
Show 20 variants
Io(Error),
Serialization(Error),
CorruptWal {
offset: u64,
reason: String,
},
TornWrite {
offset: u64,
},
ChecksumMismatch {
expected: u64,
actual: u64,
context: String,
},
MagicMismatch {
what: &'static str,
expected: [u8; 8],
got: [u8; 8],
},
Schema(String),
ColumnNotFound(String),
EncryptionDisabled,
Encryption(String),
Decryption(String),
NotFound(String),
InvalidArgument(String),
Full(String),
Conflict(String),
AuthRequired,
AuthNotRequired,
InvalidCredentials {
username: String,
},
PermissionDenied {
required: Permission,
principal: String,
},
Other(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Serialization(Error)
CorruptWal
TornWrite
ChecksumMismatch
MagicMismatch
Schema(String)
ColumnNotFound(String)
EncryptionDisabled
Encryption(String)
Decryption(String)
NotFound(String)
InvalidArgument(String)
Full(String)
Conflict(String)
AuthRequired
AuthNotRequired
InvalidCredentials
PermissionDenied
Other(String)
Trait Implementations§
Source§impl Debug for MongrelError
impl Debug for MongrelError
Source§impl Display for MongrelError
impl Display for MongrelError
Source§impl Error for MongrelError
impl Error for MongrelError
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 MongrelError
impl !UnwindSafe for MongrelError
impl Freeze for MongrelError
impl Send for MongrelError
impl Sync for MongrelError
impl Unpin for MongrelError
impl UnsafeUnpin for MongrelError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more