pub struct GetDeviceSdr { /* private fields */ }Expand description
Get a device SDR.
This command must be used in accordance with the IPMI spec, i.e.
all SDRs must be obtained sequentially. It is recommended that you use
the function Ipmi::sdrs in the ipmi-rs function for this.
Implementations§
Source§impl GetDeviceSdr
impl GetDeviceSdr
Trait Implementations§
Source§impl Clone for GetDeviceSdr
impl Clone for GetDeviceSdr
Source§fn clone(&self) -> GetDeviceSdr
fn clone(&self) -> GetDeviceSdr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetDeviceSdr
impl Debug for GetDeviceSdr
Source§impl From<GetDeviceSdr> for Message
impl From<GetDeviceSdr> for Message
Source§fn from(value: GetDeviceSdr) -> Message
fn from(value: GetDeviceSdr) -> Message
Converts to this type from the input type.
Source§impl IpmiCommand for GetDeviceSdr
impl IpmiCommand for GetDeviceSdr
Source§type Output = RecordInfo
type Output = RecordInfo
The output of this command, i.e. the expected response type.
Source§type Error = (ParseError, Option<RecordId>)
type Error = (ParseError, Option<RecordId>)
The type of error that can occur while parsing the response for this
command.
Source§fn parse_success_response(
data: &[u8],
) -> Result<<GetDeviceSdr as IpmiCommand>::Output, <GetDeviceSdr as IpmiCommand>::Error>
fn parse_success_response( data: &[u8], ) -> Result<<GetDeviceSdr as IpmiCommand>::Output, <GetDeviceSdr 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 moreimpl Copy for GetDeviceSdr
Auto Trait Implementations§
impl Freeze for GetDeviceSdr
impl RefUnwindSafe for GetDeviceSdr
impl Send for GetDeviceSdr
impl Sync for GetDeviceSdr
impl Unpin for GetDeviceSdr
impl UnwindSafe for GetDeviceSdr
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