pub enum ShardingError {
NoShardsConfigured,
NoMappingForKey(String),
ThreadPanic,
}Expand description
Sharding routing error.
Variants§
NoShardsConfigured
No shard configured; cannot route.
NoMappingForKey(String)
Enum/List/Directory strategy did not match the key and no default shard is set.
ThreadPanic
Worker thread panicked (used in ScatterGather parallel scenarios).
Trait Implementations§
Source§impl Clone for ShardingError
impl Clone for ShardingError
Source§fn clone(&self) -> ShardingError
fn clone(&self) -> ShardingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShardingError
impl Debug for ShardingError
Source§impl Display for ShardingError
impl Display for ShardingError
impl Eq for ShardingError
Source§impl Error for ShardingError
impl Error for ShardingError
1.30.0 · 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 PartialEq for ShardingError
impl PartialEq for ShardingError
impl StructuralPartialEq for ShardingError
Auto Trait Implementations§
impl Freeze for ShardingError
impl RefUnwindSafe for ShardingError
impl Send for ShardingError
impl Sync for ShardingError
impl Unpin for ShardingError
impl UnsafeUnpin for ShardingError
impl UnwindSafe for ShardingError
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