pub struct NoMonitor {}Expand description
A do nothing monitor if no monitor is provided. This is basically defining the default behavior of Copper in case of error.
Trait Implementations§
Source§impl CuMonitor for NoMonitor
impl CuMonitor for NoMonitor
Source§fn new(
_metadata: CuMonitoringMetadata,
_runtime: CuMonitoringRuntime,
) -> CuResult<Self>
fn new( _metadata: CuMonitoringMetadata, _runtime: CuMonitoringRuntime, ) -> CuResult<Self>
Construct the monitor once, before component execution starts. Read more
Source§fn start(&mut self, _ctx: &CuContext) -> CuResult<()>
fn start(&mut self, _ctx: &CuContext) -> CuResult<()>
Called once before processing the first CopperList.
Source§fn process_copperlist(
&self,
_ctx: &CuContext,
_view: CopperListView<'_>,
) -> CuResult<()>
fn process_copperlist( &self, _ctx: &CuContext, _view: CopperListView<'_>, ) -> CuResult<()>
Called once per processed CopperList after component execution.
Source§fn process_error(
&self,
_component_id: ComponentId,
_step: CuComponentState,
_error: &CuError,
) -> Decision
fn process_error( &self, _component_id: ComponentId, _step: CuComponentState, _error: &CuError, ) -> Decision
Called when a monitored component step fails; must return an immediate runtime decision. Read more
Source§fn observe_copperlist_io(&self, _stats: CopperListIoStats)
fn observe_copperlist_io(&self, _stats: CopperListIoStats)
Called when runtime finishes CopperList serialization/IO accounting.
Source§fn process_panic(&self, _panic_message: &str)
fn process_panic(&self, _panic_message: &str)
Called when the runtime catches a panic (
std builds).Auto Trait Implementations§
impl Freeze for NoMonitor
impl RefUnwindSafe for NoMonitor
impl Send for NoMonitor
impl Sync for NoMonitor
impl Unpin for NoMonitor
impl UnsafeUnpin for NoMonitor
impl UnwindSafe for NoMonitor
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more