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§
Sourcefn from_pub_sub<'a>(msg: &'a SubMsg<'a>) -> Result<Self, TableError>
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.