Trait CommandResult

Source
pub trait CommandResult: Sized {
    const MAX_LEN: usize;

    // Required method
    fn decode(data: &[u8]) -> Result<Self, ErrorCode>;
}

Required Associated Constants§

Required Methods§

Source

fn decode(data: &[u8]) -> Result<Self, ErrorCode>

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 CommandResult for ()

Source§

const MAX_LEN: usize = 0usize

Source§

fn decode(data: &[u8]) -> Result<Self, ErrorCode>

Implementors§