Trait Stateful

Source
pub trait Stateful:
    Clone
    + Default
    + Serialize
    + Display {
    type Data: Display;

    // Required methods
    fn message(&self) -> &Message<Self::Data>;
    fn timestamp(&self) -> i64;
}

Required Associated Types§

Required Methods§

Source

fn message(&self) -> &Message<Self::Data>

Source

fn timestamp(&self) -> i64

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§