#[non_exhaustive]pub enum SdJournalError {
Io {
op: &'static str,
path: Option<PathBuf>,
source: Error,
},
PermissionDenied {
path: PathBuf,
},
InvalidQuery {
reason: String,
},
Unsupported {
reason: String,
},
Corrupt {
path: Option<PathBuf>,
offset: Option<u64>,
reason: String,
},
Transient {
path: Option<PathBuf>,
reason: String,
},
DecompressFailed {
algo: CompressionAlgo,
reason: String,
},
LimitExceeded {
kind: LimitKind,
limit: u64,
},
NotFound,
}Expand description
A structured error type for journal operations.
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
PermissionDenied
InvalidQuery
Unsupported
Corrupt
Transient
DecompressFailed
LimitExceeded
NotFound
Trait Implementations§
Source§impl Debug for SdJournalError
impl Debug for SdJournalError
Source§impl Display for SdJournalError
impl Display for SdJournalError
Source§impl Error for SdJournalError
impl Error for SdJournalError
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 Freeze for SdJournalError
impl !RefUnwindSafe for SdJournalError
impl Send for SdJournalError
impl Sync for SdJournalError
impl Unpin for SdJournalError
impl !UnwindSafe for SdJournalError
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