pub struct RecvMsgManaged<C, S>{ /* private fields */ }Expand description
Receive data into managed buffer, and ancillary data into control buffer.
Implementations§
Source§impl<C, S> RecvMsgManaged<C, S>
impl<C, S> RecvMsgManaged<C, S>
Sourcepub fn new(
fd: S,
pool: &BufferPool,
len: usize,
control: C,
flags: RecvFlags,
) -> Result<RecvMsgManaged<C, S>, Error>
pub fn new( fd: S, pool: &BufferPool, len: usize, control: C, flags: RecvFlags, ) -> Result<RecvMsgManaged<C, S>, Error>
Create RecvMsgManaged.
Trait Implementations§
Source§impl<C, S> OpCode for RecvMsgManaged<C, S>
impl<C, S> OpCode for RecvMsgManaged<C, S>
Source§type Control = RecvMsgControl
type Control = RecvMsgControl
Type that contains self-references and other needed info during the
operation
Source§unsafe fn init(&mut self, ctrl: &mut <RecvMsgManaged<C, S> as OpCode>::Control)
unsafe fn init(&mut self, ctrl: &mut <RecvMsgManaged<C, S> as OpCode>::Control)
Initialize the control Read more
Source§fn pre_submit(
&mut self,
control: &mut <RecvMsgManaged<C, S> as OpCode>::Control,
) -> Result<Decision, Error>
fn pre_submit( &mut self, control: &mut <RecvMsgManaged<C, S> as OpCode>::Control, ) -> Result<Decision, Error>
Perform the operation before submit, and return
Decision to
indicate whether submitting the operation to polling is required.Source§fn op_type(
&mut self,
control: &mut <RecvMsgManaged<C, S> as OpCode>::Control,
) -> Option<OpType>
fn op_type( &mut self, control: &mut <RecvMsgManaged<C, S> as OpCode>::Control, ) -> Option<OpType>
Get the operation type when an event is occurred.
Source§impl<C, S> PollFirst for RecvMsgManaged<C, S>
impl<C, S> PollFirst for RecvMsgManaged<C, S>
Source§fn poll_first(&mut self)
fn poll_first(&mut self)
Poll first before syscall. This is only meaningful for io-uring. It sets
IORING_RECVSEND_POLL_FIRST flag in the ioprio of the SQE.Source§impl<C, S> TakeBuffer for RecvMsgManaged<C, S>
impl<C, S> TakeBuffer for RecvMsgManaged<C, S>
Source§fn take_buffer(self) -> Option<<RecvMsgManaged<C, S> as TakeBuffer>::Buffer>
fn take_buffer(self) -> Option<<RecvMsgManaged<C, S> as TakeBuffer>::Buffer>
Take buffer.
Auto Trait Implementations§
impl<C, S> !RefUnwindSafe for RecvMsgManaged<C, S>
impl<C, S> !Send for RecvMsgManaged<C, S>
impl<C, S> !Sync for RecvMsgManaged<C, S>
impl<C, S> !UnwindSafe for RecvMsgManaged<C, S>
impl<C, S> Freeze for RecvMsgManaged<C, S>
impl<C, S> Unpin for RecvMsgManaged<C, S>
impl<C, S> UnsafeUnpin for RecvMsgManaged<C, S>where
C: UnsafeUnpin,
S: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more