pub enum PartitionMethod {
RoundRobin(u64),
Hash(HashRepartition),
}Variants
RoundRobin(u64)
Hash(HashRepartition)
Implementations
sourceimpl PartitionMethod
impl PartitionMethod
pub fn encode<B>(&self, buf: &mut B) where
B: BufMut,
pub fn merge<B>(
field: &mut Option<PartitionMethod>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
pub fn encoded_len(&self) -> usize
Trait Implementations
sourceimpl Clone for PartitionMethod
impl Clone for PartitionMethod
sourcefn clone(&self) -> PartitionMethod
fn clone(&self) -> PartitionMethod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PartitionMethod
impl Debug for PartitionMethod
sourceimpl PartialEq<PartitionMethod> for PartitionMethod
impl PartialEq<PartitionMethod> for PartitionMethod
sourcefn eq(&self, other: &PartitionMethod) -> bool
fn eq(&self, other: &PartitionMethod) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PartitionMethod) -> bool
fn ne(&self, other: &PartitionMethod) -> bool
This method tests for !=.
impl StructuralPartialEq for PartitionMethod
Auto Trait Implementations
impl RefUnwindSafe for PartitionMethod
impl Send for PartitionMethod
impl Sync for PartitionMethod
impl Unpin for PartitionMethod
impl UnwindSafe for PartitionMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more