#[non_exhaustive]pub enum BarkError {
Io(Error),
Encode(Error),
}Expand description
Error type returned by append and read.
Wraps io::Error/serde_json::Error directly so callers keep the
underlying diagnostic via core::error::Error::source; this enum
cannot derive Clone/PartialEq/Eq as a result.
#[non_exhaustive]: shep-core is a published library, so a future
failure variant must not break an out-of-tree consumer’s match.
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)
The ring file could not be read, written, or replaced.
Encode(Error)
A Bark could not be serialized to JSON.
Trait Implementations§
Source§impl Error for BarkError
impl Error for BarkError
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 BarkError
impl !UnwindSafe for BarkError
impl Freeze for BarkError
impl Send for BarkError
impl Sync for BarkError
impl Unpin for BarkError
impl UnsafeUnpin for BarkError
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