Skip to main content

StaticCommand

Trait StaticCommand 

Source
pub trait StaticCommand: Command {
    type Error: Send;
}
Expand description

Static-dispatch metadata for a command.

MediCommand derives this trait automatically. When its error_type attribute is omitted, core::convert::Infallible is used.

Required Associated Types§

Source

type Error: Send

Concrete application error returned by this command’s handler.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§