[][src]Struct osauth::sync::SyncStream

pub struct SyncStream<'s, S, E = Error> where
    S: Stream<Item = Result<Bytes, E>> + Unpin
{ /* fields omitted */ }

A reader into an asynchronous stream.

Trait Implementations

impl<'s, S: Debug, E: Debug> Debug for SyncStream<'s, S, E> where
    S: Stream<Item = Result<Bytes, E>> + Unpin
[src]

impl<'s, S, E> Read for SyncStream<'s, S, E> where
    S: Stream<Item = Result<Bytes, E>> + Unpin,
    E: Into<Box<dyn Error + Send + Sync + 'static>>, 
[src]

fn read(&mut self, buf: &mut [u8]) -> Result<usize>[src]

Read a chunk for the asynchronous stream.

Auto Trait Implementations

impl<'s, S, E = Error> !RefUnwindSafe for SyncStream<'s, S, E>

impl<'s, S, E = Error> !Send for SyncStream<'s, S, E>

impl<'s, S, E = Error> !Sync for SyncStream<'s, S, E>

impl<'s, S, E> Unpin for SyncStream<'s, S, E>

impl<'s, S, E = Error> !UnwindSafe for SyncStream<'s, S, E>

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<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.