#[non_exhaustive]pub struct TableProgress {
pub estimated_size_bytes: i64,
pub estimated_copied_bytes: i64,
pub state: State,
/* private fields */
}Expand description
Progress info for copying a table’s data to the new cluster.
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.estimated_size_bytes: i64Estimate of the size of the table to be copied.
estimated_copied_bytes: i64Estimate of the number of bytes copied so far for this table. This will eventually reach ‘estimated_size_bytes’ unless the table copy is CANCELLED.
state: StateImplementations§
Source§impl TableProgress
impl TableProgress
pub fn new() -> Self
Sourcepub fn set_estimated_size_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_estimated_size_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of estimated_size_bytes.
§Example
ⓘ
let x = TableProgress::new().set_estimated_size_bytes(42);Sourcepub fn set_estimated_copied_bytes<T: Into<i64>>(self, v: T) -> Self
pub fn set_estimated_copied_bytes<T: Into<i64>>(self, v: T) -> Self
Sets the value of estimated_copied_bytes.
§Example
ⓘ
let x = TableProgress::new().set_estimated_copied_bytes(42);Trait Implementations§
Source§impl Clone for TableProgress
impl Clone for TableProgress
Source§fn clone(&self) -> TableProgress
fn clone(&self) -> TableProgress
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 moreSource§impl Debug for TableProgress
impl Debug for TableProgress
Source§impl Default for TableProgress
impl Default for TableProgress
Source§fn default() -> TableProgress
fn default() -> TableProgress
Returns the “default value” for a type. Read more
Source§impl Message for TableProgress
impl Message for TableProgress
Source§impl PartialEq for TableProgress
impl PartialEq for TableProgress
impl StructuralPartialEq for TableProgress
Auto Trait Implementations§
impl Freeze for TableProgress
impl RefUnwindSafe for TableProgress
impl Send for TableProgress
impl Sync for TableProgress
impl Unpin for TableProgress
impl UnwindSafe for TableProgress
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