pub struct ConfidenceRouter { /* private fields */ }Expand description
Routes content to the appropriate compression mode.
Implementations§
Source§impl ConfidenceRouter
impl ConfidenceRouter
pub fn new() -> Self
Sourcepub fn route(&self, content: &str) -> CompressionMode
pub fn route(&self, content: &str) -> CompressionMode
Analyze content and return the recommended compression mode.
Sourcepub fn never_store(&self, content: &str) -> bool
pub fn never_store(&self, content: &str) -> bool
Whether content must stay out of the persistent cache.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfidenceRouter
impl RefUnwindSafe for ConfidenceRouter
impl Send for ConfidenceRouter
impl Sync for ConfidenceRouter
impl Unpin for ConfidenceRouter
impl UnsafeUnpin for ConfidenceRouter
impl UnwindSafe for ConfidenceRouter
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