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§
Implementations§
source§impl StreamKind
impl StreamKind
pub fn into_kind_message(self) -> MessageKind
Trait Implementations§
source§impl Clone for StreamKind
impl Clone for StreamKind
source§fn clone(&self) -> StreamKind
fn clone(&self) -> StreamKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for StreamKind
impl Debug for StreamKind
source§impl From<MessageKind> for StreamKind
impl From<MessageKind> for StreamKind
source§fn from(m: MessageKind) -> Self
fn from(m: MessageKind) -> Self
Converts to this type from the input type.
source§impl Hash for StreamKind
impl Hash for StreamKind
source§impl PartialEq for StreamKind
impl PartialEq for StreamKind
source§fn eq(&self, other: &StreamKind) -> bool
fn eq(&self, other: &StreamKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for StreamKind
impl Eq 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§
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