[][src]Struct tokio_buf::util::IntoStream

pub struct IntoStream<T> { /* fields omitted */ }

Converts a BufStream into a Stream.

Methods

impl<T> IntoStream<T>[src]

pub fn new(buf: T) -> Self[src]

Create a new Stream from the provided BufStream.

pub fn get_ref(&self) -> &T[src]

Get a reference to the inner BufStream.

pub fn get_mut(&mut self) -> &mut T[src]

Get a mutable reference to the inner BufStream

pub fn into_inner(self) -> T[src]

Get the inner BufStream.

Trait Implementations

impl<T: Debug> Debug for IntoStream<T>[src]

impl<T: BufStream> Stream for IntoStream<T>[src]

type Item = T::Item

The type of item this stream will yield on success.

type Error = T::Error

The type of error this stream may generate.

Auto Trait Implementations

impl<T> Send for IntoStream<T> where
    T: Send

impl<T> Unpin for IntoStream<T> where
    T: Unpin

impl<T> Sync for IntoStream<T> where
    T: Sync

impl<T> UnwindSafe for IntoStream<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for IntoStream<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]