#[non_exhaustive]pub struct TransferStats {
pub transfer_bytes: Option<i64>,
pub total_transfer_duration: Option<Duration>,
pub last_transfer_bytes: Option<i64>,
pub last_transfer_duration: Option<Duration>,
pub lag_duration: Option<Duration>,
pub update_time: Option<Timestamp>,
pub last_transfer_end_time: Option<Timestamp>,
pub last_transfer_error: Option<String>,
/* private fields */
}Expand description
TransferStats reports all statistics related to replication transfer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.transfer_bytes: Option<i64>Cumulative bytes transferred so far for the replication relationship.
total_transfer_duration: Option<Duration>Cumulative time taken across all transfers for the replication relationship.
last_transfer_bytes: Option<i64>Last transfer size in bytes.
last_transfer_duration: Option<Duration>Time taken during last transfer.
lag_duration: Option<Duration>Lag duration indicates the duration by which Destination region volume content lags behind the primary region volume content.
update_time: Option<Timestamp>Time when progress was updated last.
last_transfer_end_time: Option<Timestamp>Time when last transfer completed.
last_transfer_error: Option<String>A message describing the cause of the last transfer failure.
Implementations§
Source§impl TransferStats
impl TransferStats
Sourcepub fn set_transfer_bytes<T>(self, v: T) -> Self
pub fn set_transfer_bytes<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_transfer_bytes<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_transfer_bytes<T>(self, v: Option<T>) -> Self
Sets or clears the value of transfer_bytes.
§Example
let x = TransferStats::new().set_or_clear_transfer_bytes(Some(42));
let x = TransferStats::new().set_or_clear_transfer_bytes(None::<i32>);Sourcepub fn set_total_transfer_duration<T>(self, v: T) -> Self
pub fn set_total_transfer_duration<T>(self, v: T) -> Self
Sets the value of total_transfer_duration.
§Example
use wkt::Duration;
let x = TransferStats::new().set_total_transfer_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_total_transfer_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_total_transfer_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of total_transfer_duration.
§Example
use wkt::Duration;
let x = TransferStats::new().set_or_clear_total_transfer_duration(Some(Duration::default()/* use setters */));
let x = TransferStats::new().set_or_clear_total_transfer_duration(None::<Duration>);Sourcepub fn set_last_transfer_bytes<T>(self, v: T) -> Self
pub fn set_last_transfer_bytes<T>(self, v: T) -> Self
Sets the value of last_transfer_bytes.
§Example
let x = TransferStats::new().set_last_transfer_bytes(42);Sourcepub fn set_or_clear_last_transfer_bytes<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_transfer_bytes<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_transfer_bytes.
§Example
let x = TransferStats::new().set_or_clear_last_transfer_bytes(Some(42));
let x = TransferStats::new().set_or_clear_last_transfer_bytes(None::<i32>);Sourcepub fn set_last_transfer_duration<T>(self, v: T) -> Self
pub fn set_last_transfer_duration<T>(self, v: T) -> Self
Sets the value of last_transfer_duration.
§Example
use wkt::Duration;
let x = TransferStats::new().set_last_transfer_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_last_transfer_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_transfer_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_transfer_duration.
§Example
use wkt::Duration;
let x = TransferStats::new().set_or_clear_last_transfer_duration(Some(Duration::default()/* use setters */));
let x = TransferStats::new().set_or_clear_last_transfer_duration(None::<Duration>);Sourcepub fn set_lag_duration<T>(self, v: T) -> Self
pub fn set_lag_duration<T>(self, v: T) -> Self
Sets the value of lag_duration.
§Example
use wkt::Duration;
let x = TransferStats::new().set_lag_duration(Duration::default()/* use setters */);Sourcepub fn set_or_clear_lag_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_lag_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of lag_duration.
§Example
use wkt::Duration;
let x = TransferStats::new().set_or_clear_lag_duration(Some(Duration::default()/* use setters */));
let x = TransferStats::new().set_or_clear_lag_duration(None::<Duration>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = TransferStats::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = TransferStats::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = TransferStats::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_last_transfer_end_time<T>(self, v: T) -> Self
pub fn set_last_transfer_end_time<T>(self, v: T) -> Self
Sets the value of last_transfer_end_time.
§Example
use wkt::Timestamp;
let x = TransferStats::new().set_last_transfer_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_last_transfer_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_transfer_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_transfer_end_time.
§Example
use wkt::Timestamp;
let x = TransferStats::new().set_or_clear_last_transfer_end_time(Some(Timestamp::default()/* use setters */));
let x = TransferStats::new().set_or_clear_last_transfer_end_time(None::<Timestamp>);Sourcepub fn set_last_transfer_error<T>(self, v: T) -> Self
pub fn set_last_transfer_error<T>(self, v: T) -> Self
Sets the value of last_transfer_error.
§Example
let x = TransferStats::new().set_last_transfer_error("example");Sourcepub fn set_or_clear_last_transfer_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_transfer_error<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_transfer_error.
§Example
let x = TransferStats::new().set_or_clear_last_transfer_error(Some("example"));
let x = TransferStats::new().set_or_clear_last_transfer_error(None::<String>);Trait Implementations§
Source§impl Clone for TransferStats
impl Clone for TransferStats
Source§fn clone(&self) -> TransferStats
fn clone(&self) -> TransferStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransferStats
impl Debug for TransferStats
Source§impl Default for TransferStats
impl Default for TransferStats
Source§fn default() -> TransferStats
fn default() -> TransferStats
Source§impl Message for TransferStats
impl Message for TransferStats
Source§impl PartialEq for TransferStats
impl PartialEq for TransferStats
impl StructuralPartialEq for TransferStats
Auto Trait Implementations§
impl Freeze for TransferStats
impl RefUnwindSafe for TransferStats
impl Send for TransferStats
impl Sync for TransferStats
impl Unpin for TransferStats
impl UnsafeUnpin for TransferStats
impl UnwindSafe for TransferStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request