[][src]Trait anachro_client::Table

pub trait Table: Sized {
    fn sub_paths() -> &'static [&'static str];
fn pub_paths() -> &'static [&'static str];
fn from_pub_sub<'a>(msg: &'a SubMsg<'a>) -> Result<Self, TableError>; }

A trait describing publish and subscription topics

This is used to interact with the Client interface.

Required methods

fn sub_paths() -> &'static [&'static str]

A slice of all paths that the client subscribes to

fn pub_paths() -> &'static [&'static str]

A slice of all paths that the client publishes to

fn from_pub_sub<'a>(msg: &'a SubMsg<'a>) -> Result<Self, TableError>

Create a Table item from a given SubMsg`

Loading content...

Implementors

Loading content...