Updater

Trait Updater 

Source
pub trait Updater {
    // Required methods
    fn create<T: ObjectWrite>(&mut self, obj: T) -> Result<RcRef<T>>;
    fn update<T: ObjectWrite>(
        &mut self,
        old: PlainRef,
        obj: T,
    ) -> Result<RcRef<T>>;
    fn promise<T: Object>(&mut self) -> PromisedRef<T>;
    fn fulfill<T: ObjectWrite>(
        &mut self,
        promise: PromisedRef<T>,
        obj: T,
    ) -> Result<RcRef<T>>;
}

Required Methods§

Source

fn create<T: ObjectWrite>(&mut self, obj: T) -> Result<RcRef<T>>

Source

fn update<T: ObjectWrite>(&mut self, old: PlainRef, obj: T) -> Result<RcRef<T>>

Source

fn promise<T: Object>(&mut self) -> PromisedRef<T>

Source

fn fulfill<T: ObjectWrite>( &mut self, promise: PromisedRef<T>, obj: T, ) -> Result<RcRef<T>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Updater for NoUpdate

Source§

impl<'a, R, U: Updater> Updater for Importer<'a, R, U>

Source§

impl<B, OC, SC, L> Updater for File<B, OC, SC, L>
where B: Backend, OC: Cache<Result<AnySync, Arc<PdfError>>>, SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>, L: Log,

Source§

impl<B, OC, SC, L> Updater for Storage<B, OC, SC, L>
where B: Backend, OC: Cache<Result<AnySync, Arc<PdfError>>>, SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>, L: Log,