pub struct StreamFlags(/* private fields */);Expand description
Stream flags for control
Implementations§
Source§impl StreamFlags
impl StreamFlags
Sourcepub const NONE: StreamFlags
pub const NONE: StreamFlags
No flags set
Sourcepub const FIN: StreamFlags
pub const FIN: StreamFlags
FIN - stream is closing
Sourcepub const RST: StreamFlags
pub const RST: StreamFlags
RST - stream reset/error
Sourcepub const ACK: StreamFlags
pub const ACK: StreamFlags
ACK - acknowledgment
Sourcepub const SYN: StreamFlags
pub const SYN: StreamFlags
SYN - stream open request
Sourcepub fn has_unknown_bits(self) -> bool
pub fn has_unknown_bits(self) -> bool
Check if any currently undefined flag bits are set.
Sourcepub fn with(self, other: StreamFlags) -> StreamFlags
pub fn with(self, other: StreamFlags) -> StreamFlags
Combine flags
Trait Implementations§
Source§impl BitOr for StreamFlags
impl BitOr for StreamFlags
Source§impl Clone for StreamFlags
impl Clone for StreamFlags
Source§fn clone(&self) -> StreamFlags
fn clone(&self) -> StreamFlags
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 StreamFlags
Source§impl Debug for StreamFlags
impl Debug for StreamFlags
Source§impl Default for StreamFlags
impl Default for StreamFlags
Source§fn default() -> StreamFlags
fn default() -> StreamFlags
Returns the “default value” for a type. Read more
impl Eq for StreamFlags
Source§impl PartialEq for StreamFlags
impl PartialEq for StreamFlags
Source§fn eq(&self, other: &StreamFlags) -> bool
fn eq(&self, other: &StreamFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamFlags
Auto Trait Implementations§
impl Freeze for StreamFlags
impl RefUnwindSafe for StreamFlags
impl Send for StreamFlags
impl Sync for StreamFlags
impl Unpin for StreamFlags
impl UnsafeUnpin for StreamFlags
impl UnwindSafe for StreamFlags
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