pub trait IpmiCommand: Into<Message> {
type Output;
type Error;
// Required method
fn parse_response(
completion_code: CompletionCode,
data: &[u8],
) -> Result<Self::Output, ParseResponseError<Self::Error>>;
// Provided methods
fn check_cc_success(
cc: CompletionCode,
) -> Result<(), ParseResponseError<Self::Error>> { ... }
fn target(&self) -> Option<(Address, Channel)> { ... }
}Required Associated Types§
Required Methods§
fn parse_response( completion_code: CompletionCode, data: &[u8], ) -> Result<Self::Output, ParseResponseError<Self::Error>>
Provided Methods§
fn check_cc_success( cc: CompletionCode, ) -> Result<(), ParseResponseError<Self::Error>>
fn target(&self) -> Option<(Address, Channel)>
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.