Struct quinn_proto::Streams [−][src]
pub struct Streams<'a> { /* fields omitted */ }Access to streams
Implementations
impl<'a> Streams<'a>[src]
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> !RefUnwindSafe for Streams<'a>impl<'a> !UnwindSafe for Streams<'a>
impl<'a> !UnwindSafe for Streams<'a>Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,