Struct quinn_proto::Streams[][src]

pub struct Streams<'a> { /* fields omitted */ }

Access to streams

Implementations

impl<'a> Streams<'a>[src]

pub fn open(&mut self, dir: Dir) -> Option<StreamId>[src]

Open a single stream if possible

Returns None if the streams in the given direction are currently exhausted.

pub fn accept(&mut self, dir: Dir) -> Option<StreamId>[src]

Accept a remotely initiated stream of a certain directionality, if possible

Returns None if there are no new incoming streams for this connection.

pub fn send_streams(&self) -> usize[src]

The number of streams that may have unacknowledged data.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Streams<'a>

impl<'a> Send for Streams<'a>

impl<'a> !Sync for Streams<'a>

impl<'a> Unpin for Streams<'a>

impl<'a> !UnwindSafe for Streams<'a>

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,