pub struct SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,{ /* private fields */ }Expand description
A fused SendToVectored operation
Implementations§
Source§impl<T, S> SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
impl<T, S> SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
Sourcepub fn new(fd: S, buffer: T, addr: SockAddr, flags: i32) -> SendToVectored<T, S>
pub fn new(fd: S, buffer: T, addr: SockAddr, flags: i32) -> SendToVectored<T, S>
Create a new SendToVectored.
Trait Implementations§
Source§impl<T, S> IntoInner for SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
impl<T, S> IntoInner for SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
Source§impl<T, S> OpCode for SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
impl<T, S> OpCode for SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
Source§fn create_entry(self: Pin<&mut SendToVectored<T, S>>) -> OpEntry
fn create_entry(self: Pin<&mut SendToVectored<T, S>>) -> OpEntry
Create submission entry.
Source§fn create_entry_fallback(self: Pin<&mut SendToVectored<T, S>>) -> OpEntry
fn create_entry_fallback(self: Pin<&mut SendToVectored<T, S>>) -> OpEntry
Create submission entry for fallback. This method will only be called if
create_entry returns an entry with unsupported opcode.Source§fn call_blocking(self: Pin<&mut SendToVectored<T, S>>) -> Result<usize, Error>
fn call_blocking(self: Pin<&mut SendToVectored<T, S>>) -> Result<usize, Error>
Call the operation in a blocking way. This method will be called if Read more
Source§unsafe fn set_result(
self: Pin<&mut SendToVectored<T, S>>,
result: &Result<usize, Error>,
extra: &Extra,
)
unsafe fn set_result( self: Pin<&mut SendToVectored<T, S>>, result: &Result<usize, Error>, extra: &Extra, )
Set the result when it completes.
The operation stores the result and is responsible to release it if the
operation is cancelled. Read more
Source§unsafe fn push_multishot(
self: Pin<&mut SendToVectored<T, S>>,
result: Result<usize, Error>,
extra: Extra,
)
unsafe fn push_multishot( self: Pin<&mut SendToVectored<T, S>>, result: Result<usize, Error>, extra: Extra, )
Push a multishot result to the inner queue. Read more
Source§fn pop_multishot(
self: Pin<&mut SendToVectored<T, S>>,
) -> Option<BufResult<usize, Extra>>
fn pop_multishot( self: Pin<&mut SendToVectored<T, S>>, ) -> Option<BufResult<usize, Extra>>
Pop a multishot result from the inner queue.
Source§impl<T, S> OpCode for SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
impl<T, S> OpCode for SendToVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
Source§fn pre_submit(self: Pin<&mut SendToVectored<T, S>>) -> Result<Decision, Error>
fn pre_submit(self: Pin<&mut SendToVectored<T, S>>) -> 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(self: Pin<&mut SendToVectored<T, S>>) -> Option<OpType>
fn op_type(self: Pin<&mut SendToVectored<T, S>>) -> Option<OpType>
Get the operation type when an event is occurred.
Source§fn operate(self: Pin<&mut SendToVectored<T, S>>) -> Poll<Result<usize, Error>>
fn operate(self: Pin<&mut SendToVectored<T, S>>) -> Poll<Result<usize, Error>>
Perform the operation after received corresponding
event. If this operation is blocking, the return value should be
Poll::Ready.Auto Trait Implementations§
impl<T, S> Freeze for SendToVectored<T, S>
impl<T, S> RefUnwindSafe for SendToVectored<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> !Send for SendToVectored<T, S>
impl<T, S> !Sync for SendToVectored<T, S>
impl<T, S> Unpin for SendToVectored<T, S>
impl<T, S> !UnsafeUnpin for SendToVectored<T, S>
impl<T, S> UnwindSafe for SendToVectored<T, S>where
S: UnwindSafe,
T: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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