pub struct CuConsoleMon { /* private fields */ }Expand description
A TUI based realtime console for Copper.
Implementations§
Source§impl CuConsoleMon
impl CuConsoleMon
pub fn model(&self) -> MonitorModel
Trait Implementations§
Source§impl CuMonitor for CuConsoleMon
impl CuMonitor for CuConsoleMon
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 observe_copperlist_io(&self, stats: CopperListIoStats)
fn observe_copperlist_io(&self, stats: CopperListIoStats)
Called when runtime finishes CopperList serialization/IO accounting.
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 process_panic(&self, _panic_message: &str)
fn process_panic(&self, _panic_message: &str)
Called when the runtime catches a panic (
std builds).Source§impl Drop for CuConsoleMon
impl Drop for CuConsoleMon
Auto Trait Implementations§
impl !Freeze for CuConsoleMon
impl !RefUnwindSafe for CuConsoleMon
impl Send for CuConsoleMon
impl Sync for CuConsoleMon
impl Unpin for CuConsoleMon
impl UnsafeUnpin for CuConsoleMon
impl !UnwindSafe for CuConsoleMon
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