pub struct ImmutableStore { /* private fields */ }
Expand description
An immutable storage system. This wraps filesystem calls in a sensible asynchronous API, allowing abstraction of the base path to a distribution directory or the like. Perseus uses this to store assts created at build time that won’t change, which is anything not involved in the revalidation or incremental generation strategies.
Note: the .write()
methods on this implementation will create any missing parent directories automatically.
Implementations
Trait Implementations
sourceimpl Clone for ImmutableStore
impl Clone for ImmutableStore
sourcefn clone(&self) -> ImmutableStore
fn clone(&self) -> ImmutableStore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ImmutableStore
impl Send for ImmutableStore
impl Sync for ImmutableStore
impl Unpin for ImmutableStore
impl UnwindSafe for ImmutableStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more