#[non_exhaustive]pub struct TransferCounters {
pub objects_found: i64,
pub bytes_found: i64,
pub objects_skipped: i64,
pub bytes_skipped: i64,
pub objects_copied: i64,
pub bytes_copied: i64,
pub objects_failed: i64,
pub bytes_failed: i64,
/* private fields */
}Expand description
A collection of counters that report the progress of a transfer operation.
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.objects_found: i64Objects found in the data source that are scheduled to be transferred, excluding any that are filtered based on object conditions or skipped due to sync.
bytes_found: i64Bytes found in the data source that are scheduled to be transferred, excluding any that are filtered based on object conditions or skipped due to sync.
objects_skipped: i64Objects in the data source that are not transferred because they already exist in the data destination.
bytes_skipped: i64Bytes in the data source that are not transferred because they already exist in the data destination.
objects_copied: i64Objects that are copied to the data destination.
bytes_copied: i64Bytes that are copied to the data destination.
objects_failed: i64Objects that failed to be written to the data destination.
bytes_failed: i64Bytes that failed to be written to the data destination.
Implementations§
Source§impl TransferCounters
impl TransferCounters
Sourcepub fn set_objects_found<T: Into<i64>>(self, v: T) -> Self
pub fn set_objects_found<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_bytes_found<T: Into<i64>>(self, v: T) -> Self
pub fn set_bytes_found<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_objects_skipped<T: Into<i64>>(self, v: T) -> Self
pub fn set_objects_skipped<T: Into<i64>>(self, v: T) -> Self
Sets the value of objects_skipped.
§Example
let x = TransferCounters::new().set_objects_skipped(42);Sourcepub fn set_bytes_skipped<T: Into<i64>>(self, v: T) -> Self
pub fn set_bytes_skipped<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_objects_copied<T: Into<i64>>(self, v: T) -> Self
pub fn set_objects_copied<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_bytes_copied<T: Into<i64>>(self, v: T) -> Self
pub fn set_bytes_copied<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_objects_failed<T: Into<i64>>(self, v: T) -> Self
pub fn set_objects_failed<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_bytes_failed<T: Into<i64>>(self, v: T) -> Self
pub fn set_bytes_failed<T: Into<i64>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TransferCounters
impl Clone for TransferCounters
Source§fn clone(&self) -> TransferCounters
fn clone(&self) -> TransferCounters
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 TransferCounters
impl Debug for TransferCounters
Source§impl Default for TransferCounters
impl Default for TransferCounters
Source§fn default() -> TransferCounters
fn default() -> TransferCounters
Source§impl Message for TransferCounters
impl Message for TransferCounters
Source§impl PartialEq for TransferCounters
impl PartialEq for TransferCounters
impl StructuralPartialEq for TransferCounters
Auto Trait Implementations§
impl Freeze for TransferCounters
impl RefUnwindSafe for TransferCounters
impl Send for TransferCounters
impl Sync for TransferCounters
impl Unpin for TransferCounters
impl UnsafeUnpin for TransferCounters
impl UnwindSafe for TransferCounters
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