pub struct Storage<B, OC, SC, L> { /* private fields */ }Implementations§
Source§impl<B, OC, SC, L> Storage<B, OC, SC, L>
impl<B, OC, SC, L> Storage<B, OC, SC, L>
pub fn into_inner(self) -> B
pub fn version(&self) -> Result<String>
pub fn resolver(&self) -> impl Resolve + '_
pub fn with_cache( backend: B, options: ParseOptions, object_cache: OC, stream_cache: SC, log: L, ) -> Result<Self>
pub fn load_storage_and_trailer(&mut self) -> Result<Dictionary>
pub fn load_storage_and_trailer_password( &mut self, password: &[u8], ) -> Result<Dictionary>
pub fn scan(&self) -> impl Iterator<Item = Result<ScanItem>> + '_
Trait Implementations§
Source§impl<B, OC, SC, L> Updater for Storage<B, OC, SC, L>
impl<B, OC, SC, L> Updater for Storage<B, OC, SC, L>
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>>
Auto Trait Implementations§
impl<B, OC, SC, L> Freeze for Storage<B, OC, SC, L>
impl<B, OC, SC, L> RefUnwindSafe for Storage<B, OC, SC, L>
impl<B, OC, SC, L> Send for Storage<B, OC, SC, L>
impl<B, OC, SC, L> Sync for Storage<B, OC, SC, L>
impl<B, OC, SC, L> Unpin for Storage<B, OC, SC, L>
impl<B, OC, SC, L> UnwindSafe for Storage<B, OC, SC, L>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more