[−][src]Struct futures_test::io::write::TrackClosed
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ⓘ
[src]
Acquires a reference to the underlying object that this adaptor is wrapping.
pub fn get_mut(&mut self) -> &mut Tⓘ
[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>ⓘ
[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]
pub fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8]
) -> Poll<Result<usize>>
pub fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<()>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<()>>
pub fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<()>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<()>>
pub fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>]
) -> Poll<Result<usize>>
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.
pub fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn start_send(self: Pin<&mut Self>, item: Item) -> Result<(), Self::Error>
[src]
pub fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn poll_close(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
impl<'pin, T> Unpin for TrackClosed<T> where
__TrackClosed<'pin, T>: Unpin,
[src]
__TrackClosed<'pin, T>: Unpin,
Auto Trait Implementations
impl<T> RefUnwindSafe for TrackClosed<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for TrackClosed<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for TrackClosed<T> where
T: Sync,
[src]
T: Sync,
impl<T> UnwindSafe for TrackClosed<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<W> AsyncWriteExt for W where
W: AsyncWrite + ?Sized,
[src]
W: AsyncWrite + ?Sized,
pub fn flush(&mut self) -> Flush<'_, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
pub fn close(&mut self) -> Close<'_, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
pub fn write(&'a mut self, buf: &'a [u8]) -> Write<'a, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
pub fn write_vectored(
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self>ⓘNotable traits for WriteVectored<'_, W>
impl<'_, W> Future for WriteVectored<'_, W> where
W: Unpin + AsyncWrite + ?Sized, type Output = Result<usize, Error>;
where
Self: Unpin,
[src]
&'a mut self,
bufs: &'a [IoSlice<'a>]
) -> WriteVectored<'a, Self>ⓘ
Notable traits for WriteVectored<'_, W>
impl<'_, W> Future for WriteVectored<'_, W> where
W: Unpin + AsyncWrite + ?Sized, type Output = Result<usize, Error>;
Self: Unpin,
pub fn write_all(&'a mut self, buf: &'a [u8]) -> WriteAll<'a, Self>ⓘ where
Self: Unpin,
[src]
Self: Unpin,
impl<W> AsyncWriteTestExt for W where
W: AsyncWrite,
[src]
W: AsyncWrite,
pub fn assert_unmoved_write(self) -> AssertUnmoved<Self>ⓘNotable traits for AssertUnmoved<Fut>
impl<Fut: Future> Future for AssertUnmoved<Fut> type Output = Fut::Output;
where
Self: Sized,
[src]
Notable traits for AssertUnmoved<Fut>
impl<Fut: Future> Future for AssertUnmoved<Fut> type Output = Fut::Output;
Self: Sized,
pub fn interleave_pending_write(self) -> InterleavePending<Self>ⓘNotable traits for InterleavePending<Fut>
impl<Fut: Future> Future for InterleavePending<Fut> type Output = Fut::Output;
where
Self: Sized,
[src]
Notable traits for InterleavePending<Fut>
impl<Fut: Future> Future for InterleavePending<Fut> type Output = Fut::Output;
Self: Sized,
pub fn limited_write(self, limit: usize) -> Limited<Self> where
Self: Sized,
[src]
Self: Sized,
pub fn track_closed(self) -> TrackClosed<Self> where
Self: Sized,
[src]
Self: 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<Item, W> SinkTestExt<Item> for W where
W: Sink<Item>,
[src]
W: Sink<Item>,
pub fn assert_unmoved_sink(self) -> AssertUnmoved<Self>ⓘNotable traits for AssertUnmoved<Fut>
impl<Fut: Future> Future for AssertUnmoved<Fut> type Output = Fut::Output;
where
Self: Sized,
[src]
Notable traits for AssertUnmoved<Fut>
impl<Fut: Future> Future for AssertUnmoved<Fut> type Output = Fut::Output;
Self: Sized,
pub fn interleave_pending_sink(self) -> InterleavePending<Self>ⓘNotable traits for InterleavePending<Fut>
impl<Fut: Future> Future for InterleavePending<Fut> type Output = Fut::Output;
where
Self: Sized,
[src]
Notable traits for InterleavePending<Fut>
impl<Fut: Future> Future for InterleavePending<Fut> type Output = Fut::Output;
Self: Sized,
pub fn track_closed(self) -> TrackClosed<Self> where
Self: Sized,
[src]
Self: Sized,
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>,