pub struct FormatParams {
pub logically_read_only: bool,
pub len: u64,
pub sector_size: u32,
}
Expand description
Formatting parameters provided to SqliteDiskLayer::new
Fields§
§logically_read_only: bool
Should the layer be considered logically read only (i.e: a cache layer)
len: u64
The size of the layer in bytes. Must be divisible by sector_size
.
sector_size: u32
The size of each sector.
Trait Implementations§
Source§impl Clone for FormatParams
impl Clone for FormatParams
Source§fn clone(&self) -> FormatParams
fn clone(&self) -> FormatParams
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for FormatParams
Auto Trait Implementations§
impl Freeze for FormatParams
impl RefUnwindSafe for FormatParams
impl Send for FormatParams
impl Sync for FormatParams
impl Unpin for FormatParams
impl UnwindSafe for FormatParams
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