[][src]Trait round_based::async_runtime::watcher::ProtocolWatcher

pub trait ProtocolWatcher<SM: StateMachine> {
    pub fn caught_non_critical_error(&mut self, when: When, err: SM::Err);
}

Looks after protocol execution in AsyncProtocol

Currently it's only able to see caught non critical errors, API will be expanded. It will be able to track incoming messages, changing round number, etc.

Required methods

pub fn caught_non_critical_error(&mut self, when: When, err: SM::Err)[src]

StateMachine produced a not critical error. Execution continues.

Loading content...

Implementors

impl<SM> ProtocolWatcher<SM> for BlindWatcher where
    SM: StateMachine
[src]

impl<SM> ProtocolWatcher<SM> for StderrWatcher where
    SM: StateMachine,
    SM::Err: Debug
[src]

Loading content...