pub struct MctpLinuxReq { /* private fields */ }Expand description
Encapsulation of a remote endpoint: a socket and an Endpoint ID.
Implementations§
Source§impl MctpLinuxReq
impl MctpLinuxReq
Trait Implementations§
Source§impl ReqChannel for MctpLinuxReq
impl ReqChannel for MctpLinuxReq
Source§fn send_vectored(
&mut self,
typ: MsgType,
ic: MsgIC,
bufs: &[&[u8]],
) -> Result<()>
fn send_vectored( &mut self, typ: MsgType, ic: MsgIC, bufs: &[&[u8]], ) -> Result<()>
Send a MCTP message
Linux MCTP can also send a preallocated owned tag, but that is not
yet supported in MctpLinuxReq.
Source§fn recv<'f>(
&mut self,
buf: &'f mut [u8],
) -> Result<(MsgType, MsgIC, &'f mut [u8])>
fn recv<'f>( &mut self, buf: &'f mut [u8], ) -> Result<(MsgType, MsgIC, &'f mut [u8])>
Blocking receive Read more
Source§fn remote_eid(&self) -> Eid
fn remote_eid(&self) -> Eid
Return the remote Endpoint ID
Auto Trait Implementations§
impl Freeze for MctpLinuxReq
impl RefUnwindSafe for MctpLinuxReq
impl Send for MctpLinuxReq
impl Sync for MctpLinuxReq
impl Unpin for MctpLinuxReq
impl UnwindSafe for MctpLinuxReq
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