pub enum StreamStatus {
Open,
HalfClosedLocal,
HalfClosedRemote,
Closed,
Reset,
}Expand description
Stream status
Variants§
Open
Stream is open for both sending and receiving
HalfClosedLocal
Local side has sent FIN, waiting for remote FIN
HalfClosedRemote
Remote side has sent FIN, can still send
Closed
Stream is fully closed
Reset
Stream was reset due to error
Implementations§
Trait Implementations§
Source§impl Clone for StreamStatus
impl Clone for StreamStatus
Source§fn clone(&self) -> StreamStatus
fn clone(&self) -> StreamStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamStatus
Source§impl Debug for StreamStatus
impl Debug for StreamStatus
impl Eq for StreamStatus
Source§impl PartialEq for StreamStatus
impl PartialEq for StreamStatus
Source§fn eq(&self, other: &StreamStatus) -> bool
fn eq(&self, other: &StreamStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamStatus
Auto Trait Implementations§
impl Freeze for StreamStatus
impl RefUnwindSafe for StreamStatus
impl Send for StreamStatus
impl Sync for StreamStatus
impl Unpin for StreamStatus
impl UnsafeUnpin for StreamStatus
impl UnwindSafe for StreamStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more