pub trait Command {
type Response;
// Required methods
fn command(&self) -> RawCommand;
fn response(
self,
frame: Frame,
) -> Result<Self::Response, TypedResponseError>;
}
Expand description
Types which can be used as pre-built properly typed commands.
Required Associated Types§
Required Methods§
Sourcefn command(&self) -> RawCommand
fn command(&self) -> RawCommand
Create the raw command representation for transmission.