pub struct Namespace { /* private fields */ }Expand description
A kind of file with its cache budget, declared when the store opens (§17.1, §17.8, E1).
Implementations§
Source§impl Namespace
impl Namespace
Sourcepub fn new(name: impl Into<String>, kind: Provenance, cache_budget: u64) -> Self
pub fn new(name: impl Into<String>, kind: Provenance, cache_budget: u64) -> Self
A namespace of this kind. The budget applies when the namespace is
first declared; set_cache_budget changes it after.
Sourcepub fn kind(&self) -> &Provenance
pub fn kind(&self) -> &Provenance
Whose bytes its files are.
Sourcepub fn cache_budget(&self) -> u64
pub fn cache_budget(&self) -> u64
The initial cache budget in bytes, as declared, not its current setting. Pinned files’ bytes don’t count toward it.
Trait Implementations§
impl Eq for Namespace
impl StructuralPartialEq for Namespace
Auto Trait Implementations§
impl Freeze for Namespace
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnsafeUnpin for Namespace
impl UnwindSafe for Namespace
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.