Struct CopyBufAbortable
#[must_use = "futures do nothing unless you `.await` or poll them"]
pub struct CopyBufAbortable<'a, R, W: ?Sized> { /* private fields */ }
Future for the [copy_buf_abortable()] function.
Trait Implementations
impl<'__pin, 'a, R, W: ?Sized> Unpin for CopyBufAbortable<'a, R, W>
where
PinnedFieldsOf<__Origin<'__pin, 'a, R, W>>: Unpin,
impl<'a, R: Debug, W: Debug + ?Sized> Debug for CopyBufAbortable<'a, R, W>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<R, W> Future for CopyBufAbortable<'_, R, W>
where
R: AsyncBufRead,
W: AsyncWrite + Unpin + Sized,
type Output = Result<Result<u64, Aborted>, Error>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
Auto Trait Implementations
impl<'a, R, W> !RefUnwindSafe for CopyBufAbortable<'a, R, W>
impl<'a, R, W> !UnwindSafe for CopyBufAbortable<'a, R, W>
impl<'a, R, W> Freeze for CopyBufAbortable<'a, R, W>
where
R: Freeze,
&'a mut W: Freeze,
W: ?Sized,
impl<'a, R, W> Send for CopyBufAbortable<'a, R, W>
where
R: Send,
&'a mut W: Send,
W: ?Sized,
impl<'a, R, W> Sync for CopyBufAbortable<'a, R, W>
where
R: Sync,
&'a mut W: Sync,
W: ?Sized,
impl<'a, R, W> UnsafeUnpin for CopyBufAbortable<'a, R, W>
where
R: UnsafeUnpin,
&'a mut W: UnsafeUnpin,
W: ?Sized,
Blanket Implementations
impl<F> IntoFuture for CopyBufAbortable<'a, R, W>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<F, T, E> TryFuture for CopyBufAbortable<'a, R, W>
where
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>
impl<Fut> TryFutureExt for CopyBufAbortable<'a, R, W>
where
Fut: TryFuture + ?Sized,
impl<T> Any for CopyBufAbortable<'a, R, W>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CopyBufAbortable<'a, R, W>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CopyBufAbortable<'a, R, W>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for CopyBufAbortable<'a, R, W>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for CopyBufAbortable<'a, R, W>
where
T: Future + ?Sized,
impl<T, U> Into<U> for CopyBufAbortable<'a, R, W>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CopyBufAbortable<'a, R, W>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for CopyBufAbortable<'a, R, W>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>