Enum fire_http_api::stream::StreamKind
source · pub enum StreamKind {
Sender,
Receiver,
}Available on crate feature
feature only.Expand description
Note
The names are in the perspective of a client so a StreamKind of Sender will mean the client sends data and the server receives it.
Variants
Sender
Receiver
Implementations
sourceimpl StreamKind
impl StreamKind
pub fn into_kind_message(self) -> MessageKind
Trait Implementations
sourceimpl Clone for StreamKind
impl Clone for StreamKind
sourcefn clone(&self) -> StreamKind
fn clone(&self) -> StreamKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for StreamKind
impl Debug for StreamKind
sourceimpl From<MessageKind> for StreamKind
impl From<MessageKind> for StreamKind
sourcefn from(m: MessageKind) -> Self
fn from(m: MessageKind) -> Self
Converts to this type from the input type.
sourceimpl Hash for StreamKind
impl Hash for StreamKind
sourceimpl PartialEq<StreamKind> for StreamKind
impl PartialEq<StreamKind> for StreamKind
sourcefn eq(&self, other: &StreamKind) -> bool
fn eq(&self, other: &StreamKind) -> bool
impl Copy for StreamKind
impl Eq for StreamKind
impl StructuralEq for StreamKind
impl StructuralPartialEq for StreamKind
Auto Trait Implementations
impl RefUnwindSafe for StreamKind
impl Send for StreamKind
impl Sync for StreamKind
impl Unpin for StreamKind
impl UnwindSafe for StreamKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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