openthread::ot

Trait Cli

Source
pub trait Cli {
    // Required methods
    fn cli_input_line(&self, line: &CStr);
    fn cli_init<'a, F>(&self, output_callback: F)
       where F: FnMut(&CStr) + 'a;
}
Expand description

Methods from the OpenThread “CLI” Module.

Required Methods§

Source

fn cli_input_line(&self, line: &CStr)

Functional equivalent of otsys::otCliInputLine.

Source

fn cli_init<'a, F>(&self, output_callback: F)
where F: FnMut(&CStr) + 'a,

Functional equivalent of otsys::otCliInit.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Cli for Instance

Source§

impl<T: Cli + Boxable> Cli for Box<T>