pub struct ControlParagraphAsyncReader<R> { /* private fields */ }Expand description
An asynchronous reader of ControlParagraph.
Instances are bound to a reader, which is capable of reading lines.
Implementations§
Source§impl<R> ControlParagraphAsyncReader<R>where
R: AsyncBufRead + Unpin,
impl<R> ControlParagraphAsyncReader<R>where
R: AsyncBufRead + Unpin,
Sourcepub fn into_inner(self) -> R
pub fn into_inner(self) -> R
Consumes self, returning the inner reader.
Sourcepub async fn read_paragraph(
&mut self,
) -> Result<Option<ControlParagraph<'static>>>
pub async fn read_paragraph( &mut self, ) -> Result<Option<ControlParagraph<'static>>>
Read the next available paragraph from this reader.
Resolves to None on end of input.
Trait Implementations§
impl<'pin, R> Unpin for ControlParagraphAsyncReader<R>where
PinnedFieldsOf<__ControlParagraphAsyncReader<'pin, R>>: Unpin,
Auto Trait Implementations§
impl<R> Freeze for ControlParagraphAsyncReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for ControlParagraphAsyncReader<R>where
R: RefUnwindSafe,
impl<R> Send for ControlParagraphAsyncReader<R>where
R: Send,
impl<R> Sync for ControlParagraphAsyncReader<R>where
R: Sync,
impl<R> UnwindSafe for ControlParagraphAsyncReader<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