pub struct AlterContext<'a> { /* private fields */ }Implementations§
Source§impl<'a> AlterContext<'a>
impl<'a> AlterContext<'a>
pub fn new( operation: &'static str, metrics: &'a mut MetricSet, lineage: &'a mut Lineage, generation: usize, rate: f32, ) -> AlterContext<'a>
pub fn rate(&self) -> f32
pub fn generation(&self) -> usize
pub fn metric(&mut self, name: &'static str, value: impl Into<MetricUpdate<'a>>)
pub fn update_lineage(&mut self, update: impl Into<LineageUpdate>)
Auto Trait Implementations§
impl<'a> Freeze for AlterContext<'a>
impl<'a> RefUnwindSafe for AlterContext<'a>
impl<'a> Send for AlterContext<'a>
impl<'a> Sync for AlterContext<'a>
impl<'a> Unpin for AlterContext<'a>
impl<'a> UnsafeUnpin for AlterContext<'a>
impl<'a> !UnwindSafe for AlterContext<'a>
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