pub struct GetChannelInfo { /* private fields */ }Expand description
The Get Channel Info command.
Reference: IPMI 2.0 Specification, Table 22-29
Implementations§
Source§impl GetChannelInfo
impl GetChannelInfo
Sourcepub fn new(channel: Channel) -> GetChannelInfo
pub fn new(channel: Channel) -> GetChannelInfo
Create a new Get Channel Info command for channel.
Trait Implementations§
Source§impl From<GetChannelInfo> for Message
impl From<GetChannelInfo> for Message
Source§fn from(value: GetChannelInfo) -> Message
fn from(value: GetChannelInfo) -> Message
Converts to this type from the input type.
Source§impl IpmiCommand for GetChannelInfo
impl IpmiCommand for GetChannelInfo
Source§type Output = ChannelInfo
type Output = ChannelInfo
The output of this command, i.e. the expected response type.
Source§type Error = NotEnoughData
type Error = NotEnoughData
The type of error that can occur while parsing the response for this
command.
Source§fn parse_success_response(
data: &[u8],
) -> Result<<GetChannelInfo as IpmiCommand>::Output, <GetChannelInfo as IpmiCommand>::Error>
fn parse_success_response( data: &[u8], ) -> Result<<GetChannelInfo as IpmiCommand>::Output, <GetChannelInfo as IpmiCommand>::Error>
Try to parse the expected response for this command from the
provided
data, assuming a successful completion code.Source§fn handle_completion_code(
completion_code: CompletionErrorCode,
data: &[u8],
) -> Option<Self::Error>
fn handle_completion_code( completion_code: CompletionErrorCode, data: &[u8], ) -> Option<Self::Error>
Handle the provided completion code
completion_code and optionally provide
a special error in case of failure. Read moreAuto Trait Implementations§
impl Freeze for GetChannelInfo
impl RefUnwindSafe for GetChannelInfo
impl Send for GetChannelInfo
impl Sync for GetChannelInfo
impl Unpin for GetChannelInfo
impl UnsafeUnpin for GetChannelInfo
impl UnwindSafe for GetChannelInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more