pub struct GetSensorReading { /* private fields */ }Implementations§
Source§impl GetSensorReading
impl GetSensorReading
pub fn new( sensor_number: SensorNumber, address: Address, channel: Channel, ) -> GetSensorReading
pub fn for_sensor_key(value: &SensorKey) -> GetSensorReading
Trait Implementations§
Source§impl From<GetSensorReading> for Message
impl From<GetSensorReading> for Message
Source§fn from(value: GetSensorReading) -> Message
fn from(value: GetSensorReading) -> Message
Converts to this type from the input type.
Source§impl IpmiCommand for GetSensorReading
impl IpmiCommand for GetSensorReading
Source§type Output = RawSensorReading
type Output = RawSensorReading
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<<GetSensorReading as IpmiCommand>::Output, <GetSensorReading as IpmiCommand>::Error>
fn parse_success_response( data: &[u8], ) -> Result<<GetSensorReading as IpmiCommand>::Output, <GetSensorReading 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 GetSensorReading
impl RefUnwindSafe for GetSensorReading
impl Send for GetSensorReading
impl Sync for GetSensorReading
impl Unpin for GetSensorReading
impl UnwindSafe for GetSensorReading
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