pub enum StreamRole {
Send,
Both,
}Expand description
role on a STREAM_END — which direction(s) are closing.
Variants§
Send
Half-close: this side is done sending, still willing to receive.
Both
Full close: this side is done in both directions.
Implementations§
Trait Implementations§
Source§impl Clone for StreamRole
impl Clone for StreamRole
Source§fn clone(&self) -> StreamRole
fn clone(&self) -> StreamRole
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 StreamRole
Source§impl Debug for StreamRole
impl Debug for StreamRole
impl Eq for StreamRole
Source§impl PartialEq for StreamRole
impl PartialEq for StreamRole
impl StructuralPartialEq for StreamRole
Auto Trait Implementations§
impl Freeze for StreamRole
impl RefUnwindSafe for StreamRole
impl Send for StreamRole
impl Sync for StreamRole
impl Unpin for StreamRole
impl UnsafeUnpin for StreamRole
impl UnwindSafe for StreamRole
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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