pub struct Message { /* private fields */ }Expand description
The wire representation of an IPMI messag.e
Implementations§
Source§impl Message
impl Message
Sourcepub fn new_request(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Message
pub fn new_request(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Message
Create a new request message with the provided netfn, cmd and data.
Sourcepub fn new_response(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Message
pub fn new_response(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Message
Create a new response message with the provided netfn, cmd and data.
Trait Implementations§
Source§impl From<ActivateSession> for Message
impl From<ActivateSession> for Message
Source§fn from(value: ActivateSession) -> Message
fn from(value: ActivateSession) -> Message
Converts to this type from the input type.
Source§impl From<GetChannelAuthenticationCapabilities> for Message
impl From<GetChannelAuthenticationCapabilities> for Message
Source§fn from(value: GetChannelAuthenticationCapabilities) -> Message
fn from(value: GetChannelAuthenticationCapabilities) -> Message
Converts to this type from the input type.
Source§impl From<GetChannelCipherSuites> for Message
impl From<GetChannelCipherSuites> for Message
Source§fn from(value: GetChannelCipherSuites) -> Message
fn from(value: GetChannelCipherSuites) -> Message
Converts to this type from the input type.
Source§impl From<GetDeviceId> for Message
impl From<GetDeviceId> for Message
Source§fn from(_: GetDeviceId) -> Message
fn from(_: GetDeviceId) -> Message
Converts to this type from the input type.
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 From<GetDeviceSdrInfo<SensorCount>> for Message
impl From<GetDeviceSdrInfo<SensorCount>> for Message
Source§fn from(_: GetDeviceSdrInfo<SensorCount>) -> Message
fn from(_: GetDeviceSdrInfo<SensorCount>) -> Message
Converts to this type from the input type.
Source§impl From<GetRepositoryInfo> for Message
impl From<GetRepositoryInfo> for Message
Source§fn from(_: GetRepositoryInfo) -> Message
fn from(_: GetRepositoryInfo) -> Message
Converts to this type from the input type.
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 From<GetSessionChallenge> for Message
impl From<GetSessionChallenge> for Message
Source§fn from(value: GetSessionChallenge) -> Message
fn from(value: GetSessionChallenge) -> Message
Converts to this type from the input type.
Source§impl From<ReserveSel> for Message
impl From<ReserveSel> for Message
Source§fn from(_: ReserveSel) -> Message
fn from(_: ReserveSel) -> Message
Build the request message.
Request format (IPMI 2.0 Spec, Table 31-4):
- No request data
Source§impl From<GetAllocInfo> for Message
impl From<GetAllocInfo> for Message
Source§fn from(_: GetAllocInfo) -> Message
fn from(_: GetAllocInfo) -> Message
Converts to this type from the input type.
Source§impl From<GetAllocInfo> for Message
impl From<GetAllocInfo> for Message
Source§fn from(_: GetAllocInfo) -> Message
fn from(_: GetAllocInfo) -> Message
Converts to this type from the input type.
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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