Enum quinn_proto::StreamEvent
source · [−]pub enum StreamEvent {
Opened {
dir: Dir,
},
Readable {
id: StreamId,
},
Writable {
id: StreamId,
},
Finished {
id: StreamId,
},
Stopped {
id: StreamId,
error_code: VarInt,
},
Available {
dir: Dir,
},
}
Expand description
Application events about streams
Variants
Opened
Fields
dir: Dir
Directionality for which streams have been opened
One or more new streams has been opened
Readable
Fields
id: StreamId
Which stream is now readable
A currently open stream has data or errors waiting to be read
Writable
Fields
id: StreamId
Which stream is now writable
A formerly write-blocked stream might be ready for a write or have been stopped
Only generated for streams that are currently open.
Finished
Fields
id: StreamId
Which stream has been finished
A finished stream has been fully acknowledged or stopped
Stopped
The peer asked us to stop sending on an outgoing stream
Available
Fields
dir: Dir
Directionality for which streams are newly available
At least one new stream of a certain directionality may be opened
Trait Implementations
sourceimpl Debug for StreamEvent
impl Debug for StreamEvent
sourceimpl PartialEq<StreamEvent> for StreamEvent
impl PartialEq<StreamEvent> for StreamEvent
sourcefn eq(&self, other: &StreamEvent) -> bool
fn eq(&self, other: &StreamEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StreamEvent) -> bool
fn ne(&self, other: &StreamEvent) -> bool
This method tests for !=
.
impl Eq for StreamEvent
impl StructuralEq for StreamEvent
impl StructuralPartialEq for StreamEvent
Auto Trait Implementations
impl RefUnwindSafe for StreamEvent
impl Send for StreamEvent
impl Sync for StreamEvent
impl Unpin for StreamEvent
impl UnwindSafe for StreamEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more