1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use super::*;

/// A user of a `PageCache` needs to provide a `Materializer` which
/// handles the merging of page fragments.
pub trait Materializer:
    'static + Debug + Clone + Serialize + DeserializeOwned + Send + Sync
{
    /// Used to merge chains of partial pages into a form
    /// that is useful for the `PageCache` owner.
    fn merge(&mut self, other: &Self);
}