[][src]Trait tokio_modbus::client::util::NewContext

pub trait NewContext {
    fn new_context(&self) -> Box<dyn Future<Item = Context, Error = Error>>;
}

Trait for (re-)creating new contexts on demand.

Implement this trait for reconnecting a SharedContext on demand.

Required methods

fn new_context(&self) -> Box<dyn Future<Item = Context, Error = Error>>

Create a new context.

Loading content...

Implementors

Loading content...