pub struct Request { /* private fields */ }Expand description
An IPMI request message.
Implementations§
Source§impl Request
impl Request
Sourcepub const fn new(request: Message, target: RequestTargetAddress) -> Request
pub const fn new(request: Message, target: RequestTargetAddress) -> Request
Create a new IPMI request message.
The netfn for request should be of the request variant, see Message::new_request.
Sourcepub fn data(&self) -> &[u8] ⓘ
pub fn data(&self) -> &[u8] ⓘ
Get a shared reference to the data of the request (does not include netfn or command).
Sourcepub fn data_mut(&mut self) -> &mut [u8] ⓘ
pub fn data_mut(&mut self) -> &mut [u8] ⓘ
Get a mutable reference to the data of the request (does not include netfn or command).
Sourcepub fn target(&self) -> RequestTargetAddress
pub fn target(&self) -> RequestTargetAddress
Get the target for the request.
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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