Struct async_read_util::ObservedReader [−][src]
pub struct ObservedReader<R, F> { /* fields omitted */ }
An async reader which allows a closure to observe the bytes being read as they are ready. This has use cases such as hashing the output of a reader without interfering with the actual content.
Implementations
Trait Implementations
impl<'pin, R, F> Unpin for ObservedReader<R, F> where
__ObservedReader<'pin, R, F>: Unpin,
[src]
impl<'pin, R, F> Unpin for ObservedReader<R, F> where
__ObservedReader<'pin, R, F>: Unpin,
[src]Auto Trait Implementations
impl<R, F> RefUnwindSafe for ObservedReader<R, F> where
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, F> RefUnwindSafe for ObservedReader<R, F> where
F: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, F> Send for ObservedReader<R, F> where
F: Send,
R: Send,
impl<R, F> Send for ObservedReader<R, F> where
F: Send,
R: Send,
impl<R, F> Sync for ObservedReader<R, F> where
F: Sync,
R: Sync,
impl<R, F> Sync for ObservedReader<R, F> where
F: Sync,
R: Sync,
impl<R, F> UnwindSafe for ObservedReader<R, F> where
F: UnwindSafe,
R: UnwindSafe,
impl<R, F> UnwindSafe for ObservedReader<R, F> where
F: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized,
impl<R> AsyncReadExt for R where
R: AsyncRead + ?Sized,
pub fn chain<R>(self, next: R) -> Chain<Self, R> where
R: AsyncRead,
R: AsyncRead,
pub fn read(&'a mut self, buf: &'a mut [u8]) -> Read<'a, Self> where
Self: Unpin,
Self: Unpin,
pub fn read_vectored(
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self> where
Self: Unpin,
&'a mut self,
bufs: &'a mut [IoSliceMut<'a>]
) -> ReadVectored<'a, Self> where
Self: Unpin,
pub fn read_exact(&'a mut self, buf: &'a mut [u8]) -> ReadExact<'a, Self> where
Self: Unpin,
Self: Unpin,
pub fn read_to_end(
&'a mut self,
buf: &'a mut Vec<u8, Global>
) -> ReadToEnd<'a, Self> where
Self: Unpin,
&'a mut self,
buf: &'a mut Vec<u8, Global>
) -> ReadToEnd<'a, Self> where
Self: Unpin,
pub fn read_to_string(
&'a mut self,
buf: &'a mut String
) -> ReadToString<'a, Self> where
Self: Unpin,
&'a mut self,
buf: &'a mut String
) -> ReadToString<'a, Self> where
Self: Unpin,
pub fn split(self) -> (ReadHalf<Self>, WriteHalf<Self>) where
Self: AsyncWrite,
Self: AsyncWrite,
pub fn take(self, limit: u64) -> Take<Self>
impl<R> AsyncReadUtil for R where
R: AsyncRead,
[src]
impl<R> AsyncReadUtil for R where
R: AsyncRead,
[src]