Enum httpbis::solicit::session::StreamState
[−]
[src]
pub enum StreamState { Idle, ReservedLocal, ReservedRemote, Open, HalfClosedRemote, HalfClosedLocal, Closed, }
The enum represents all the states that an HTTP/2 stream can be found in.
Corresponds to section 5.1. of the spec.
Variants
Idle
ReservedLocal
ReservedRemote
Open
HalfClosedRemote
HalfClosedLocal
Closed
Methods
impl StreamState
[src]
fn is_closed(&self) -> bool
Returns whether the stream is closed.
A stream is considered to be closed iff its state is set to Closed
.
fn is_closed_local(&self) -> bool
Returns whether the stream is closed locally.
fn is_closed_remote(&self) -> bool
Returns whether the remote peer has closed the stream. This includes a fully closed stream.
Trait Implementations
impl Clone for StreamState
[src]
fn clone(&self) -> StreamState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for StreamState
[src]
impl PartialEq for StreamState
[src]
fn eq(&self, __arg_0: &StreamState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.