pub struct SendVectoredZc<T, S>where
T: IoVectoredBuf,{ /* private fields */ }Expand description
Send data to remote from vectored buffer.
Implementations§
Source§impl<T, S> SendVectored<T, S>where
T: IoVectoredBuf,
impl<T, S> SendVectored<T, S>where
T: IoVectoredBuf,
Sourcepub fn new(fd: S, buffer: T, flags: SendFlags) -> SendVectored<T, S>
pub fn new(fd: S, buffer: T, flags: SendFlags) -> SendVectored<T, S>
Create SendVectored.
Trait Implementations§
Source§impl<T, S> IntoInner for SendVectored<T, S>where
T: IoVectoredBuf,
impl<T, S> IntoInner for SendVectored<T, S>where
T: IoVectoredBuf,
Source§fn into_inner(self) -> <SendVectored<T, S> as IntoInner>::Inner
fn into_inner(self) -> <SendVectored<T, S> as IntoInner>::Inner
Get the inner buffer.
Source§impl<T, S> OpCode for SendVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
impl<T, S> OpCode for SendVectored<T, S>where
T: IoVectoredBuf,
S: AsFd,
Source§type Control = SendVectoredControl
type Control = SendVectoredControl
Type that contains self-references and other needed info during the
operation
Source§unsafe fn init(&mut self, ctrl: &mut <SendVectored<T, S> as OpCode>::Control)
unsafe fn init(&mut self, ctrl: &mut <SendVectored<T, S> as OpCode>::Control)
Initialize the control Read more
Source§fn pre_submit(
&mut self,
control: &mut <SendVectored<T, S> as OpCode>::Control,
) -> Result<Decision, Error>
fn pre_submit( &mut self, control: &mut <SendVectored<T, 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,
_: &mut <SendVectored<T, S> as OpCode>::Control,
) -> Option<OpType>
fn op_type( &mut self, _: &mut <SendVectored<T, S> as OpCode>::Control, ) -> Option<OpType>
Get the operation type when an event is occurred.
Auto Trait Implementations§
impl<T, S> Freeze for SendVectored<T, S>
impl<T, S> RefUnwindSafe for SendVectored<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for SendVectored<T, S>
impl<T, S> Sync for SendVectored<T, S>
impl<T, S> Unpin for SendVectored<T, S>
impl<T, S> UnsafeUnpin for SendVectored<T, S>where
S: UnsafeUnpin,
T: UnsafeUnpin,
impl<T, S> UnwindSafe for SendVectored<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<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