pub struct GetChannelAccess { /* private fields */ }Expand description
The Get Channel Access command.
This command is used to return whether a given channel is enabled or disabled, whether alerting is enabled or disabled for the entire channel, and under what system modes the channel can be accessed.
Reference: IPMI 2.0 Specification, Table 22-28
Implementations§
Source§impl GetChannelAccess
impl GetChannelAccess
Sourcepub fn new(channel: Channel, access_type: ChannelAccessType) -> Self
pub fn new(channel: Channel, access_type: ChannelAccessType) -> Self
Create a new Get Channel Access command for channel.
Use access_type to specify whether to get the non-volatile or volatile
(currently active) settings.
Sourcepub fn non_volatile(channel: Channel) -> Self
pub fn non_volatile(channel: Channel) -> Self
Create a command to get the non-volatile (persistent) access settings.
Trait Implementations§
Source§impl From<GetChannelAccess> for Message
impl From<GetChannelAccess> for Message
Source§fn from(value: GetChannelAccess) -> Self
fn from(value: GetChannelAccess) -> Self
Converts to this type from the input type.
Source§impl IpmiCommand for GetChannelAccess
impl IpmiCommand for GetChannelAccess
Source§type Output = ChannelAccess
type Output = ChannelAccess
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<Self::Output, Self::Error>
fn parse_success_response(data: &[u8]) -> Result<Self::Output, Self::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 GetChannelAccess
impl RefUnwindSafe for GetChannelAccess
impl Send for GetChannelAccess
impl Sync for GetChannelAccess
impl Unpin for GetChannelAccess
impl UnsafeUnpin for GetChannelAccess
impl UnwindSafe for GetChannelAccess
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