Skip to main content

Command

Trait Command 

Source
pub trait Command:
    Send
    + Sync
    + 'static {
    type Args: Send + 'static;
    type Output: Send + 'static;
    type Error: Send + 'static;

    const NAME: &'static str;
}
Expand description

A typed application command contract.

NAME is used only for diagnostics. Commands are registered and resolved by their Rust type, so arguments and results never pass through serialization.

Required Associated Constants§

Source

const NAME: &'static str

Required Associated Types§

Source

type Args: Send + 'static

Source

type Output: Send + 'static

Source

type Error: Send + 'static

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§