pub enum StreamingDecision {
Buffer,
SkipCache,
StreamThrough,
StreamIfPossible,
}Expand description
Decision on how to handle a response body based on size and content type.
Variants§
Buffer
Buffer the body and cache it (small enough, appropriate type)
SkipCache
Skip caching entirely (too large or excluded content type)
StreamThrough
Stream the body without buffering (not implemented yet)
StreamIfPossible
Try to stream if possible, fallback to buffer (unknown size)
Trait Implementations§
Source§impl Clone for StreamingDecision
impl Clone for StreamingDecision
Source§fn clone(&self) -> StreamingDecision
fn clone(&self) -> StreamingDecision
Returns a duplicate 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 StreamingDecision
impl Debug for StreamingDecision
Source§impl PartialEq for StreamingDecision
impl PartialEq for StreamingDecision
impl Copy for StreamingDecision
impl Eq for StreamingDecision
impl StructuralPartialEq for StreamingDecision
Auto Trait Implementations§
impl Freeze for StreamingDecision
impl RefUnwindSafe for StreamingDecision
impl Send for StreamingDecision
impl Sync for StreamingDecision
impl Unpin for StreamingDecision
impl UnwindSafe for StreamingDecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.