pub enum StreamKind {
FiniteUpload,
FiniteDownload,
CallerCancelledEvent,
}Expand description
Streaming operation shape.
Variants§
FiniteUpload
One finite request-body upload.
FiniteDownload
One finite response-body download.
CallerCancelledEvent
An event download whose lifetime is bounded by caller cancellation and the observation policy.
Trait Implementations§
Source§impl Clone for StreamKind
impl Clone for StreamKind
Source§fn clone(&self) -> StreamKind
fn clone(&self) -> StreamKind
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 StreamKind
Source§impl Debug for StreamKind
impl Debug for StreamKind
impl Eq for StreamKind
Source§impl Hash for StreamKind
impl Hash for StreamKind
Source§impl Ord for StreamKind
impl Ord for StreamKind
Source§fn cmp(&self, other: &StreamKind) -> Ordering
fn cmp(&self, other: &StreamKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamKind
impl PartialEq for StreamKind
Source§impl PartialOrd for StreamKind
impl PartialOrd for StreamKind
impl StructuralPartialEq for StreamKind
Auto Trait Implementations§
impl Freeze for StreamKind
impl RefUnwindSafe for StreamKind
impl Send for StreamKind
impl Sync for StreamKind
impl Unpin for StreamKind
impl UnsafeUnpin 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