Struct ReplicationFactor
pub struct ReplicationFactor(/* private fields */);Expand description
A replication factor count.
Implementations§
§impl ReplicationFactor
impl ReplicationFactor
pub const fn new(value: u16) -> ReplicationFactor
pub const fn new(value: u16) -> ReplicationFactor
Creates a replication factor.
Trait Implementations§
§impl Clone for ReplicationFactor
impl Clone for ReplicationFactor
§fn clone(&self) -> ReplicationFactor
fn clone(&self) -> ReplicationFactor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ReplicationFactor
impl Debug for ReplicationFactor
§impl Default for ReplicationFactor
impl Default for ReplicationFactor
§fn default() -> ReplicationFactor
fn default() -> ReplicationFactor
Returns the “default value” for a type. Read more
§impl Display for ReplicationFactor
impl Display for ReplicationFactor
§impl Hash for ReplicationFactor
impl Hash for ReplicationFactor
§impl Ord for ReplicationFactor
impl Ord for ReplicationFactor
§fn cmp(&self, other: &ReplicationFactor) -> Ordering
fn cmp(&self, other: &ReplicationFactor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for ReplicationFactor
impl PartialEq for ReplicationFactor
§impl PartialOrd for ReplicationFactor
impl PartialOrd for ReplicationFactor
impl Copy for ReplicationFactor
impl Eq for ReplicationFactor
impl StructuralPartialEq for ReplicationFactor
Auto Trait Implementations§
impl Freeze for ReplicationFactor
impl RefUnwindSafe for ReplicationFactor
impl Send for ReplicationFactor
impl Sync for ReplicationFactor
impl Unpin for ReplicationFactor
impl UnsafeUnpin for ReplicationFactor
impl UnwindSafe for ReplicationFactor
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