pub struct OrdinaryStorage {
pub artifact: ArtifactStore,
pub asset: AssetStore,
pub cache: CacheStore,
pub secrets: SecretsStore,
pub database: DatabaseStore,
/* private fields */
}Fields§
§artifact: ArtifactStore§asset: AssetStore§cache: CacheStore§secrets: SecretsStore§database: DatabaseStoreImplementations§
Source§impl OrdinaryStorage
storage mechanism for ordinary applications.
impl OrdinaryStorage
storage mechanism for ordinary applications.
pub fn new( limits: StorageLimits, model_configs: Vec<DatabaseModelConfig>, encryption_key: [u8; 32], env: &Arc<Environment>, log_sizes: bool, ) -> Result<Self>
pub fn stat(&self) -> Result<Stat>
pub fn write_txn(&self) -> Result<WriteTransaction<'_>>
pub fn read_txn(&self) -> Result<ReadTransaction<'_>>
Auto Trait Implementations§
impl !RefUnwindSafe for OrdinaryStorage
impl !UnwindSafe for OrdinaryStorage
impl Freeze for OrdinaryStorage
impl Send for OrdinaryStorage
impl Sync for OrdinaryStorage
impl Unpin for OrdinaryStorage
impl UnsafeUnpin for OrdinaryStorage
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