Struct async_utf8_decoder::Utf8Decoder
source · [−]pub struct Utf8Decoder<R> { /* private fields */ }Implementations
sourceimpl<R> Utf8Decoder<R>
impl<R> Utf8Decoder<R>
sourcepub fn with_capacity(capacity: usize, reader: R) -> Self
pub fn with_capacity(capacity: usize, reader: R) -> Self
Create a new incremental UTF-8 decoder from reader with specified capacity
sourcepub fn into_inner(self) -> R
pub fn into_inner(self) -> R
Consumes this decoder, returning the underlying reader.
Trait Implementations
sourceimpl<R> Stream for Utf8Decoder<R> where
R: AsyncRead + Unpin,
impl<R> Stream for Utf8Decoder<R> where
R: AsyncRead + Unpin,
impl<'__pin, R> Unpin for Utf8Decoder<R> where
__Origin<'__pin, R>: Unpin,
Auto Trait Implementations
impl<R> RefUnwindSafe for Utf8Decoder<R> where
R: RefUnwindSafe,
impl<R> Send for Utf8Decoder<R> where
R: Send,
impl<R> Sync for Utf8Decoder<R> where
R: Sync,
impl<R> UnwindSafe for Utf8Decoder<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more