Table

Trait Table 

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

A trait describing publish and subscription topics

This is used to interact with the Client interface.

Required Methods§

Source

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

A slice of all paths that the client subscribes to

Source

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

A slice of all paths that the client publishes to

Source

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

Create a Table item from a given SubMsg`

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§