pub enum IncrementStrategy {
Sequential,
Random {
max: u64,
},
}Expand description
增量方式
Variants§
Trait Implementations§
Source§impl Clone for IncrementStrategy
impl Clone for IncrementStrategy
Source§fn clone(&self) -> IncrementStrategy
fn clone(&self) -> IncrementStrategy
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 IncrementStrategy
impl Debug for IncrementStrategy
Source§impl Default for IncrementStrategy
impl Default for IncrementStrategy
Source§impl<'de> Deserialize<'de> for IncrementStrategy
impl<'de> Deserialize<'de> for IncrementStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IncrementStrategy
impl RefUnwindSafe for IncrementStrategy
impl Send for IncrementStrategy
impl Sync for IncrementStrategy
impl Unpin for IncrementStrategy
impl UnsafeUnpin for IncrementStrategy
impl UnwindSafe for IncrementStrategy
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