pub enum ShardRoute {
Global,
Key(u64),
}Expand description
Where a single operation should run.
Variants§
Global
A non-sharded (global) entity, or a single-database backend: no routing.
Key(u64)
Route by this shard-key value — a shard-encoded id the executor decodes to a physical shard.
Trait Implementations§
Source§impl Clone for ShardRoute
impl Clone for ShardRoute
impl Copy for ShardRoute
Source§impl Debug for ShardRoute
impl Debug for ShardRoute
impl Eq for ShardRoute
Source§impl PartialEq for ShardRoute
impl PartialEq for ShardRoute
impl StructuralPartialEq for ShardRoute
Auto Trait Implementations§
impl Freeze for ShardRoute
impl RefUnwindSafe for ShardRoute
impl Send for ShardRoute
impl Sync for ShardRoute
impl Unpin for ShardRoute
impl UnsafeUnpin for ShardRoute
impl UnwindSafe for ShardRoute
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