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§
Required Methods§
Sourcefn opcode(&self) -> KnownOpcode
fn opcode(&self) -> KnownOpcode
Command opcode represented by this operation.
Provided Methods§
Sourcefn requires_discovery(&self) -> bool
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".