Struct completion_io::DefaultWriteVectored [−][src]
A default implementation of WriteVectoredFuture
for
types that don't have efficient vectored writes.
This will forward to write
with the first nonempty buffer provided,
or an empty one if none exists.
Implementations
impl<'a, T: AsyncWriteWith<'a>> DefaultWriteVectored<'a, T>
[src]
pub fn new(writer: &'a mut T, bufs: &'a [IoSlice<'a>]) -> Self
[src]
Create a new DefaultWriteVectored
future.
Trait Implementations
impl<'a, T: AsyncWriteWith<'a>> CompletionFuture for DefaultWriteVectored<'a, T>
[src]
type Output = Result<usize>
The type of value produced on completion.
unsafe fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
[src]
unsafe fn poll_cancel(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<()>
[src]
impl<'a, T: Debug + AsyncWriteWith<'a>> Debug for DefaultWriteVectored<'a, T> where
T::WriteFuture: Debug,
[src]
T::WriteFuture: Debug,
impl<'a, T: AsyncWriteWith<'a>> Future for DefaultWriteVectored<'a, T> where
<T as AsyncWriteWith<'a>>::WriteFuture: Future<Output = Result<usize>>,
[src]
<T as AsyncWriteWith<'a>>::WriteFuture: Future<Output = Result<usize>>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for DefaultWriteVectored<'a, T> where
<T as AsyncWriteWith<'a>>::WriteFuture: RefUnwindSafe,
<T as AsyncWriteWith<'a>>::WriteFuture: RefUnwindSafe,
impl<'a, T> Send for DefaultWriteVectored<'a, T> where
<T as AsyncWriteWith<'a>>::WriteFuture: Send,
<T as AsyncWriteWith<'a>>::WriteFuture: Send,
impl<'a, T> Sync for DefaultWriteVectored<'a, T> where
<T as AsyncWriteWith<'a>>::WriteFuture: Sync,
<T as AsyncWriteWith<'a>>::WriteFuture: Sync,
impl<'a, T> Unpin for DefaultWriteVectored<'a, T> where
<T as AsyncWriteWith<'a>>::WriteFuture: Unpin,
<T as AsyncWriteWith<'a>>::WriteFuture: Unpin,
impl<'a, T> UnwindSafe for DefaultWriteVectored<'a, T> where
<T as AsyncWriteWith<'a>>::WriteFuture: UnwindSafe,
<T as AsyncWriteWith<'a>>::WriteFuture: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src]
F: Future,
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,