[][src]Struct futures_test::io::write::TrackClosed

pub struct TrackClosed<T> { /* fields omitted */ }

Async wrapper that tracks whether it has been closed.

See the track_closed methods on:

Implementations

impl<T> TrackClosed<T>[src]

pub fn is_closed(&self) -> bool[src]

Check whether this object has been closed.

pub fn get_ref(&self) -> &T

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Acquires a reference to the underlying object that this adaptor is wrapping.

pub fn get_mut(&mut self) -> &mut T

Notable traits for &'_ mut F

impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Acquires a mutable reference to the underlying object that this adaptor is wrapping.

pub fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

Acquires a pinned mutable reference to the underlying object that this adaptor is wrapping.

pub fn into_inner(self) -> T[src]

Consumes this adaptor returning the underlying object.

Trait Implementations

impl<T: AsyncWrite> AsyncWrite for TrackClosed<T>[src]

impl<T: Debug> Debug for TrackClosed<T>[src]

impl<Item, T: Sink<Item>> Sink<Item> for TrackClosed<T>[src]

type Error = T::Error

The type of value produced by the sink when an error occurs.

impl<'pin, T> Unpin for TrackClosed<T> where
    __TrackClosed<'pin, T>: Unpin
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for TrackClosed<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for TrackClosed<T> where
    T: Send
[src]

impl<T> Sync for TrackClosed<T> where
    T: Sync
[src]

impl<T> UnwindSafe for TrackClosed<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<W> AsyncWriteExt for W where
    W: AsyncWrite + ?Sized
[src]

impl<W> AsyncWriteTestExt for W where
    W: AsyncWrite
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Item, W> SinkTestExt<Item> for W where
    W: Sink<Item>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.