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