pub trait Pipe:
Send
+ Sync
+ 'static {
type Key;
type Value;
// Required methods
fn is_enabled(&self) -> bool;
fn send(&self, piece: Piece<Self::Key, Self::Value>);
}Expand description
Pipe is used to notify disk cache to cache entries from the in-memory cache.
Required Associated Types§
Required Methods§
Sourcefn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Decide whether to send evicted entry to pipe.