pub enum PartitionError {
InvalidShardCount(u16),
InvalidSegmentSize(usize),
MetaOperationFailed(String),
SegmentScanFailed(String),
DatabaseError(String),
EncodingError(String),
}Expand description
Errors specific to the partition layer. These are concerned with generic storage mechanics and are independent of value types.
Variants§
InvalidShardCount(u16)
Invalid shard count configuration
InvalidSegmentSize(usize)
Invalid segment size configuration
MetaOperationFailed(String)
Meta table operations failed
SegmentScanFailed(String)
Segment scan failed
DatabaseError(String)
Database operation failed
EncodingError(String)
Encoding operation failed
Trait Implementations§
Source§impl Debug for PartitionError
impl Debug for PartitionError
Source§impl Display for PartitionError
impl Display for PartitionError
Source§impl Error for PartitionError
impl Error for PartitionError
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<PartitionError> for Error
impl From<PartitionError> for Error
Source§fn from(err: PartitionError) -> Self
fn from(err: PartitionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PartitionError
impl RefUnwindSafe for PartitionError
impl Send for PartitionError
impl Sync for PartitionError
impl Unpin for PartitionError
impl UnwindSafe for PartitionError
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