Struct async_utf8_decoder::Utf8Decoder
source · pub struct Utf8Decoder<R> { /* private fields */ }Implementations§
source§impl<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§
source§impl<R> Stream for Utf8Decoder<R>where
R: AsyncRead + Unpin,
impl<R> Stream for Utf8Decoder<R>where R: AsyncRead + Unpin,
§type Item = Result<String, DecodeError>
type Item = Result<String, DecodeError>
Values yielded by the stream.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more