pub enum ShardError {
Io(Error),
Lock(LockError),
InitFailed(Error),
InvalidShardName(String),
}Expand description
Errors that can occur during shard operations.
Variants§
Io(Error)
I/O error during shard operations.
Lock(LockError)
Lock acquisition failed.
InitFailed(Error)
The .bones directory does not exist and could not be created.
InvalidShardName(String)
Shard file name does not match expected YYYY-MM.events pattern.
Trait Implementations§
Source§impl Debug for ShardError
impl Debug for ShardError
Source§impl Display for ShardError
impl Display for ShardError
Source§impl Error for ShardError
impl Error for ShardError
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()
Source§impl From<Error> for ShardError
impl From<Error> for ShardError
Source§impl From<LockError> for ShardError
impl From<LockError> for ShardError
Source§impl From<ShardError> for VerifyError
impl From<ShardError> for VerifyError
Source§fn from(source: ShardError) -> Self
fn from(source: ShardError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShardError
impl !RefUnwindSafe for ShardError
impl Send for ShardError
impl Sync for ShardError
impl Unpin for ShardError
impl UnsafeUnpin for ShardError
impl !UnwindSafe for ShardError
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