pub enum RangeHandling {
PassThrough,
CacheFullServeRanges,
CacheChunks,
}Expand description
Policy for handling range requests in the cache.
Variants§
PassThrough
Pass through range requests without caching (default, simplest)
CacheFullServeRanges
Cache the full response on first request, serve ranges from cache This requires fetching the complete resource once
CacheChunks
Cache individual chunks independently (future feature) This is the most complex but most efficient for large files
Trait Implementations§
Source§impl Clone for RangeHandling
impl Clone for RangeHandling
Source§fn clone(&self) -> RangeHandling
fn clone(&self) -> RangeHandling
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 RangeHandling
impl Debug for RangeHandling
Source§impl Default for RangeHandling
impl Default for RangeHandling
Source§fn default() -> RangeHandling
fn default() -> RangeHandling
Returns the “default value” for a type. Read more
Source§impl PartialEq for RangeHandling
impl PartialEq for RangeHandling
impl Copy for RangeHandling
impl Eq for RangeHandling
impl StructuralPartialEq for RangeHandling
Auto Trait Implementations§
impl Freeze for RangeHandling
impl RefUnwindSafe for RangeHandling
impl Send for RangeHandling
impl Sync for RangeHandling
impl Unpin for RangeHandling
impl UnwindSafe for RangeHandling
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.