Trait Monitor

Source
pub trait Monitor {
    // Required method
    fn display(
        &mut self,
        client_stats_manager: &mut ClientStatsManager,
        event_msg: &str,
        sender_id: ClientId,
    ) -> Result<(), Error>;
}
Expand description

The monitor trait keeps track of all the client’s monitor, and offers methods to display them.

Required Methods§

Source

fn display( &mut self, client_stats_manager: &mut ClientStatsManager, event_msg: &str, sender_id: ClientId, ) -> Result<(), Error>

Show the monitor to the user

Implementations on Foreign Types§

Source§

impl<A: Monitor> Monitor for (A, ())

Source§

fn display( &mut self, client_stats_manager: &mut ClientStatsManager, event_msg: &str, sender_id: ClientId, ) -> Result<(), Error>

Source§

impl<A: Monitor, B: Monitor> Monitor for (A, B)

Source§

fn display( &mut self, client_stats_manager: &mut ClientStatsManager, event_msg: &str, sender_id: ClientId, ) -> Result<(), Error>

Implementors§