Struct WriteVectoredAt
pub struct WriteVectoredAt<T, S>where
T: IoVectoredBuf,{ /* private fields */ }Expand description
Write a file at specified position from vectored buffer.
Implementations§
§impl<T, S> WriteVectoredAt<T, S>where
T: IoVectoredBuf,
impl<T, S> WriteVectoredAt<T, S>where
T: IoVectoredBuf,
pub fn new(fd: S, offset: u64, buffer: T) -> WriteVectoredAt<T, S>
pub fn new(fd: S, offset: u64, buffer: T) -> WriteVectoredAt<T, S>
Create WriteVectoredAt.
Trait Implementations§
§impl<T, S> IntoInner for WriteVectoredAt<T, S>where
T: IoVectoredBuf,
impl<T, S> IntoInner for WriteVectoredAt<T, S>where
T: IoVectoredBuf,
§fn into_inner(self) -> <WriteVectoredAt<T, S> as IntoInner>::Inner
fn into_inner(self) -> <WriteVectoredAt<T, S> as IntoInner>::Inner
Get the inner buffer.
§impl<T, S> OpCode for WriteVectoredAt<T, S>where
T: IoVectoredBuf,
S: AsFd,
impl<T, S> OpCode for WriteVectoredAt<T, S>where
T: IoVectoredBuf,
S: AsFd,
§type Control = AioControl<VectoredControl>
type Control = AioControl<VectoredControl>
Type that contains self-references and other needed info during the
operation
§unsafe fn init(&mut self, ctrl: &mut <WriteVectoredAt<T, S> as OpCode>::Control)
unsafe fn init(&mut self, ctrl: &mut <WriteVectoredAt<T, S> as OpCode>::Control)
Initialize the control Read more
§fn pre_submit(
&mut self,
ctrl: &mut <WriteVectoredAt<T, S> as OpCode>::Control,
) -> Result<Decision, Error>
fn pre_submit( &mut self, ctrl: &mut <WriteVectoredAt<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,
ctrl: &mut <WriteVectoredAt<T, S> as OpCode>::Control,
) -> Option<OpType>
fn op_type( &mut self, ctrl: &mut <WriteVectoredAt<T, S> as OpCode>::Control, ) -> Option<OpType>
Get the operation type when an event is occurred.
§fn operate(
&mut self,
ctrl: &mut <WriteVectoredAt<T, S> as OpCode>::Control,
) -> Poll<Result<usize, Error>>
fn operate( &mut self, ctrl: &mut <WriteVectoredAt<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 WriteVectoredAt<T, S>
impl<T, S> RefUnwindSafe for WriteVectoredAt<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for WriteVectoredAt<T, S>
impl<T, S> Sync for WriteVectoredAt<T, S>
impl<T, S> Unpin for WriteVectoredAt<T, S>
impl<T, S> UnsafeUnpin for WriteVectoredAt<T, S>where
S: UnsafeUnpin,
T: UnsafeUnpin,
impl<T, S> UnwindSafe for WriteVectoredAt<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