Skip to main content

Operation

Trait Operation 

Source
pub trait Operation: Sealed + Sized {
    type Output;

    // Required method
    fn opcode(&self) -> KnownOpcode;

    // Provided method
    fn requires_discovery(&self) -> bool { ... }
}
Expand description

Sealed response contract for one typed pending operation.

Required Associated Types§

Source

type Output

Validated successful response value.

Required Methods§

Source

fn opcode(&self) -> KnownOpcode

Command opcode represented by this operation.

Provided Methods§

Source

fn requires_discovery(&self) -> bool

Whether device discovery must complete before this operation can be published.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§