pub struct AddressableStorageCapabilities { /* private fields */ }Expand description
Generic independently addressable storage facilities implemented by a backend.
Implementations§
Source§impl AddressableStorageCapabilities
impl AddressableStorageCapabilities
Sourcepub const fn new(
bulk_access: bool,
incremental_access: bool,
lease_completion: bool,
maximum_compact_bytes: u64,
) -> Self
pub const fn new( bulk_access: bool, incremental_access: bool, lease_completion: bool, maximum_compact_bytes: u64, ) -> Self
Creates an exact addressable-storage capability report.
Sourcepub const fn with_tiers(self, tiers: AddressableStorageTiers) -> Self
pub const fn with_tiers(self, tiers: AddressableStorageTiers) -> Self
Replaces the exact supported storage-tier set.
Sourcepub const fn bulk_access(self) -> bool
pub const fn bulk_access(self) -> bool
Returns whether bounded multi-row access is implemented.
Sourcepub const fn incremental_access(self) -> bool
pub const fn incremental_access(self) -> bool
Returns whether latency-sensitive incremental access is implemented.
Sourcepub const fn lease_completion(self) -> bool
pub const fn lease_completion(self) -> bool
Returns whether acquisitions remain leased through native completion.
Sourcepub const fn maximum_compact_bytes(self) -> u64
pub const fn maximum_compact_bytes(self) -> u64
Returns the largest supported per-acquisition compact bank.
Sourcepub const fn tiers(self) -> AddressableStorageTiers
pub const fn tiers(self) -> AddressableStorageTiers
Returns the exact independently addressable storage tiers.
Trait Implementations§
Source§impl Clone for AddressableStorageCapabilities
impl Clone for AddressableStorageCapabilities
Source§fn clone(&self) -> AddressableStorageCapabilities
fn clone(&self) -> AddressableStorageCapabilities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddressableStorageCapabilities
impl Eq for AddressableStorageCapabilities
impl StructuralPartialEq for AddressableStorageCapabilities
Auto Trait Implementations§
impl Freeze for AddressableStorageCapabilities
impl RefUnwindSafe for AddressableStorageCapabilities
impl Send for AddressableStorageCapabilities
impl Sync for AddressableStorageCapabilities
impl Unpin for AddressableStorageCapabilities
impl UnsafeUnpin for AddressableStorageCapabilities
impl UnwindSafe for AddressableStorageCapabilities
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