Struct Lines

#[must_use = "streams do nothing unless polled"]
pub struct Lines<R> { /* private fields */ }

Stream for the lines method.

Trait Implementations

impl<'__pin, R> Unpin for Lines<R> where PinnedFieldsOf<__Origin<'__pin, R>>: Unpin,

impl<R: AsyncBufRead> Stream for Lines<R>

type Item = Result<String, Error>;
fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>

impl<R: Debug> Debug for Lines<R>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<R> Freeze for Lines<R> where R: Freeze,

impl<R> RefUnwindSafe for Lines<R> where R: RefUnwindSafe,

impl<R> Send for Lines<R> where R: Send,

impl<R> Sync for Lines<R> where R: Sync,

impl<R> UnsafeUnpin for Lines<R> where R: UnsafeUnpin,

impl<R> UnwindSafe for Lines<R> where R: UnwindSafe,

Blanket Implementations

impl<S> TryStreamExt for Lines<R> where S: TryStream + ?Sized,

impl<S, T, E> TryStream for Lines<R> where S: Stream<Item = Result<T, E>> + ?Sized,

type Ok = T;
type Error = E;
fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>

impl<T> Any for Lines<R> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Lines<R> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Lines<R> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Lines<R>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> StreamExt for Lines<R> where T: Stream + ?Sized,

impl<T, U> Into<U> for Lines<R> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Lines<R> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Lines<R> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>