Skip to main content

Inspector

Trait Inspector 

Source
pub(crate) trait Inspector<ServerT: Server>: Send + 'static {
    // Required methods
    fn inspect(self: Box<Self>, server: &ServerT);
    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>;
}
Expand description

What inspects a server via Command::Inspect.

Required Methods§

Source

fn inspect(self: Box<Self>, server: &ServerT)

Calls this function with server as argument

Source

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Trait Implementations§

Source§

impl<S: Server> Display for Box<dyn Inspector<S>>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

Source§

impl<S: Server, F: FnOnce(&S) + Send + 'static, D: Display + Send + 'static> Inspector<S> for (F, D)

Source§

fn inspect(self: Box<Self>, server: &S)

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Implementors§