pub enum Shards {
_8,
_16,
_32,
_64,
_128,
}Expand description
Number of shards for a TxMap.
Must be a power of two. The map uses shard_count - 1 as a bitmask
for shard selection from the hash.
Variants§
Trait Implementations§
impl Copy for Shards
Auto Trait Implementations§
impl Freeze for Shards
impl RefUnwindSafe for Shards
impl Send for Shards
impl Sync for Shards
impl Unpin for Shards
impl UnsafeUnpin for Shards
impl UnwindSafe for Shards
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