pub enum ShardingError {
NoShardsConfigured,
NoMappingForKey(String),
ThreadPanic,
}Expand description
分片路由错误
Variants§
NoShardsConfigured
未配置任何 shard,无法路由
NoMappingForKey(String)
Enum/List/Directory 策略未匹配到 key,且无默认 shard
ThreadPanic
工作线程 panic(用于 ScatterGather 并行场景)
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