Trait Command

Source
pub trait Command:
    Serialize
    + Sync
    + Send {
    type Ok: DeserializeOwned;

    const NAME: &'static str;
    const ALLOW_OOB: bool;
}

Required Associated Constants§

Source

const NAME: &'static str

Source

const ALLOW_OOB: bool

Required Associated Types§

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.

Implementations on Foreign Types§

Source§

impl<'a, C: Command> Command for &'a C

Source§

const NAME: &'static str = C::NAME

Source§

const ALLOW_OOB: bool = C::ALLOW_OOB

Source§

type Ok = <C as Command>::Ok

Source§

impl<'a, C: Command> Command for &'a mut C

Source§

const NAME: &'static str = C::NAME

Source§

const ALLOW_OOB: bool = C::ALLOW_OOB

Source§

type Ok = <C as Command>::Ok

Implementors§