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
fn new( _config: &CuConfig, _taskids: &'static [&'static str], ) -> Result<NoMonitor, CuError>
Source§fn process_copperlist(&self, _msgs: &[&CuMsgMetadata]) -> Result<(), CuError>
fn process_copperlist(&self, _msgs: &[&CuMsgMetadata]) -> Result<(), CuError>
Callback that will be trigger at the end of every copperlist (before, on or after the serialization).
Source§fn process_error(
&self,
_taskid: usize,
_step: CuTaskState,
_error: &CuError,
) -> Decision
fn process_error( &self, _taskid: usize, _step: CuTaskState, _error: &CuError, ) -> Decision
Callbacked when a Task errored out. The runtime requires an immediate decision.
fn start(&mut self, _clock: &RobotClock) -> Result<(), CuError>
Auto Trait Implementations§
impl Freeze for NoMonitor
impl RefUnwindSafe for NoMonitor
impl Send for NoMonitor
impl Sync for NoMonitor
impl Unpin 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