pub struct StreamInstrumentationRun { /* private fields */ }Expand description
Handle for updating one instrumented materialization.
Implementations§
Source§impl StreamInstrumentationRun
impl StreamInstrumentationRun
Sourcepub fn id(&self) -> StreamInstrumentationId
pub fn id(&self) -> StreamInstrumentationId
The id assigned by the registry.
Sourcepub fn record_element(&self)
pub fn record_element(&self)
Record one successfully observed element.
Sourcepub fn record_elements(&self, elements: u64)
pub fn record_elements(&self, elements: u64)
Record multiple successfully observed elements.
Sourcepub fn record_restart(&self)
pub fn record_restart(&self)
Record one restart for this materialization/job owner.
Sourcepub fn record_restarts(&self, restarts: u64)
pub fn record_restarts(&self, restarts: u64)
Record multiple restarts for this materialization/job owner.
Sourcepub fn mark_running(&self)
pub fn mark_running(&self)
Mark the run as running.
Sourcepub fn mark_draining(&self)
pub fn mark_draining(&self)
Mark the run as draining.
Sourcepub fn mark_completed(&self)
pub fn mark_completed(&self)
Mark the run as completed.
Sourcepub fn mark_failed(&self)
pub fn mark_failed(&self)
Mark the run as failed.
Sourcepub fn snapshot(&self) -> StreamInstrumentationSnapshot
pub fn snapshot(&self) -> StreamInstrumentationSnapshot
Return a point-in-time snapshot of this run.
Trait Implementations§
Source§impl Clone for StreamInstrumentationRun
impl Clone for StreamInstrumentationRun
Source§fn clone(&self) -> StreamInstrumentationRun
fn clone(&self) -> StreamInstrumentationRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamInstrumentationRun
impl RefUnwindSafe for StreamInstrumentationRun
impl Send for StreamInstrumentationRun
impl Sync for StreamInstrumentationRun
impl Unpin for StreamInstrumentationRun
impl UnsafeUnpin for StreamInstrumentationRun
impl UnwindSafe for StreamInstrumentationRun
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage