pub struct PortableStoreFormat {
pub segment_bytes: u64,
pub index_slots: u64,
}Expand description
The sizes a portable file store root is created with. Reopening a root uses the sizes recorded at its creation.
Fields§
§segment_bytes: u64Bytes per segment file: at least the maximum record size and below FAT’s 4 GiB file limit. A record never spans segments.
index_slots: u64Initial slots of the hash index file, a power of two from 64 to 2^28 (a 2 GiB file); the index doubles when it is half full.
Implementations§
Source§impl PortableStoreFormat
impl PortableStoreFormat
Sourcepub const MAX_SEGMENT_BYTES: u64
pub const MAX_SEGMENT_BYTES: u64
FAT’s largest file size.
Trait Implementations§
Source§impl Clone for PortableStoreFormat
impl Clone for PortableStoreFormat
Source§fn clone(&self) -> PortableStoreFormat
fn clone(&self) -> PortableStoreFormat
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 PortableStoreFormat
Source§impl Debug for PortableStoreFormat
impl Debug for PortableStoreFormat
Source§impl Default for PortableStoreFormat
impl Default for PortableStoreFormat
Source§fn default() -> PortableStoreFormat
fn default() -> PortableStoreFormat
Returns the “default value” for a type. Read more
impl Eq for PortableStoreFormat
Source§impl PartialEq for PortableStoreFormat
impl PartialEq for PortableStoreFormat
Source§fn eq(&self, other: &PortableStoreFormat) -> bool
fn eq(&self, other: &PortableStoreFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PortableStoreFormat
Auto Trait Implementations§
impl Freeze for PortableStoreFormat
impl RefUnwindSafe for PortableStoreFormat
impl Send for PortableStoreFormat
impl Sync for PortableStoreFormat
impl Unpin for PortableStoreFormat
impl UnsafeUnpin for PortableStoreFormat
impl UnwindSafe for PortableStoreFormat
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