#[non_exhaustive]pub struct ReplicatingStep {
pub total_bytes: i64,
pub replicated_bytes: i64,
pub last_two_minutes_average_bytes_per_second: i64,
pub last_thirty_minutes_average_bytes_per_second: i64,
/* private fields */
}Expand description
ReplicatingStep contains specific step details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_bytes: i64Total bytes to be handled in the step.
replicated_bytes: i64Replicated bytes in the step.
last_two_minutes_average_bytes_per_second: i64The source disks replication rate for the last 2 minutes in bytes per second.
last_thirty_minutes_average_bytes_per_second: i64The source disks replication rate for the last 30 minutes in bytes per second.
Implementations§
Source§impl ReplicatingStep
impl ReplicatingStep
Sourcepub fn set_total_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_bytes<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_replicated_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_replicated_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of replicated_bytes.
§Example
ⓘ
let x = ReplicatingStep::new().set_replicated_bytes(42);Sourcepub fn set_last_two_minutes_average_bytes_per_second<T: Into<i64>>(
self,
v: T,
) -> Self
pub fn set_last_two_minutes_average_bytes_per_second<T: Into<i64>>( self, v: T, ) -> Self
Sets the value of last_two_minutes_average_bytes_per_second.
§Example
ⓘ
let x = ReplicatingStep::new().set_last_two_minutes_average_bytes_per_second(42);Sourcepub fn set_last_thirty_minutes_average_bytes_per_second<T: Into<i64>>(
self,
v: T,
) -> Self
pub fn set_last_thirty_minutes_average_bytes_per_second<T: Into<i64>>( self, v: T, ) -> Self
Sets the value of last_thirty_minutes_average_bytes_per_second.
§Example
ⓘ
let x = ReplicatingStep::new().set_last_thirty_minutes_average_bytes_per_second(42);Trait Implementations§
Source§impl Clone for ReplicatingStep
impl Clone for ReplicatingStep
Source§fn clone(&self) -> ReplicatingStep
fn clone(&self) -> ReplicatingStep
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 ReplicatingStep
impl Debug for ReplicatingStep
Source§impl Default for ReplicatingStep
impl Default for ReplicatingStep
Source§fn default() -> ReplicatingStep
fn default() -> ReplicatingStep
Returns the “default value” for a type. Read more
Source§impl Message for ReplicatingStep
impl Message for ReplicatingStep
Source§impl PartialEq for ReplicatingStep
impl PartialEq for ReplicatingStep
Source§fn eq(&self, other: &ReplicatingStep) -> bool
fn eq(&self, other: &ReplicatingStep) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplicatingStep
Auto Trait Implementations§
impl Freeze for ReplicatingStep
impl RefUnwindSafe for ReplicatingStep
impl Send for ReplicatingStep
impl Sync for ReplicatingStep
impl Unpin for ReplicatingStep
impl UnsafeUnpin for ReplicatingStep
impl UnwindSafe for ReplicatingStep
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