Struct ipmi_rs::connection::Message
source · pub struct Message { /* private fields */ }Implementations§
source§impl Message
impl Message
pub fn new_request(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Self
pub fn new_response(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Self
pub fn new_raw(netfn: u8, cmd: u8, data: Vec<u8>) -> Self
pub fn netfn(&self) -> NetFn
pub fn netfn_raw(&self) -> u8
pub fn cmd(&self) -> u8
pub fn data(&self) -> &[u8] ⓘ
pub fn data_mut(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
source§impl From<GetAllocInfo> for Message
impl From<GetAllocInfo> for Message
source§fn from(_: GetAllocInfo) -> Self
fn from(_: GetAllocInfo) -> Self
Converts to this type from the input type.
source§impl From<GetAllocInfo> for Message
impl From<GetAllocInfo> for Message
source§fn from(_: GetAllocInfo) -> Self
fn from(_: GetAllocInfo) -> Self
Converts to this type from the input type.
source§impl From<GetDeviceId> for Message
impl From<GetDeviceId> for Message
source§fn from(_: GetDeviceId) -> Self
fn from(_: GetDeviceId) -> Self
Converts to this type from the input type.
source§impl From<GetDeviceSdr> for Message
impl From<GetDeviceSdr> for Message
source§fn from(value: GetDeviceSdr) -> Self
fn from(value: GetDeviceSdr) -> Self
Converts to this type from the input type.
source§impl From<GetDeviceSdrInfo<SdrCount>> for Message
impl From<GetDeviceSdrInfo<SdrCount>> for Message
source§fn from(_: GetDeviceSdrInfo<SdrCount>) -> Self
fn from(_: GetDeviceSdrInfo<SdrCount>) -> Self
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>) -> Self
fn from(_: GetDeviceSdrInfo<SensorCount>) -> Self
Converts to this type from the input type.
source§impl From<GetRepositoryInfo> for Message
impl From<GetRepositoryInfo> for Message
source§fn from(_: GetRepositoryInfo) -> Self
fn from(_: GetRepositoryInfo) -> Self
Converts to this type from the input type.
source§impl From<GetSensorReading> for Message
impl From<GetSensorReading> for Message
source§fn from(value: GetSensorReading) -> Self
fn from(value: GetSensorReading) -> Self
Converts to this type from the input type.
source§impl Into<Message> for ActivateSession
impl Into<Message> for ActivateSession
source§impl Into<Message> for GetSessionChallenge
impl Into<Message> for GetSessionChallenge
source§impl PartialEq for Message
impl PartialEq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
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