pub struct AlterResult(pub usize, pub Option<Vec<Metric>>, pub Option<Vec<LineageUpdate>>);Expand description
The AlterResult struct is used to represent the result of an alteration operation. It contains the number of operations performed and a vector of metrics that were collected during the alteration process.
Tuple Fields§
§0: usize§1: Option<Vec<Metric>>§2: Option<Vec<LineageUpdate>>Implementations§
Source§impl AlterResult
impl AlterResult
pub fn empty() -> Self
pub fn count(&self) -> usize
pub fn update_lineage(&mut self, lineage: impl Into<LineageUpdate>)
pub fn merge(&mut self, other: AlterResult)
Trait Implementations§
Source§impl Default for AlterResult
impl Default for AlterResult
Source§impl From<(Vec<Metric>, Vec<LineageUpdate>)> for AlterResult
impl From<(Vec<Metric>, Vec<LineageUpdate>)> for AlterResult
Source§impl From<(usize, LineageUpdate)> for AlterResult
impl From<(usize, LineageUpdate)> for AlterResult
Source§fn from((count, lineage): (usize, LineageUpdate)) -> Self
fn from((count, lineage): (usize, LineageUpdate)) -> Self
Converts to this type from the input type.
Source§impl From<(usize, Vec<Metric>, Vec<LineageUpdate>)> for AlterResult
impl From<(usize, Vec<Metric>, Vec<LineageUpdate>)> for AlterResult
Source§impl From<Metric> for AlterResult
impl From<Metric> for AlterResult
Auto Trait Implementations§
impl Freeze for AlterResult
impl RefUnwindSafe for AlterResult
impl Send for AlterResult
impl Sync for AlterResult
impl Unpin for AlterResult
impl UnsafeUnpin for AlterResult
impl UnwindSafe for AlterResult
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