pub struct PackOptions {
pub lock: LockMode,
pub indexes: bool,
pub extra: Vec<(String, Vec<u8>)>,
pub limits: PackLimits,
}Fields§
§lock: LockModeHow the writer lock is taken for the length of the read. As in super::BackupOptions.
indexes: boolAlso pack the <table>.idx snapshots (caches; off by default).
extra: Vec<(String, Vec<u8>)>Files of the caller’s own to store next to the database files (a manifest of the application’s
format, say), as (name inside the archive, bytes). Read back with read_pack_entry.
limits: PackLimitsTrait Implementations§
Source§impl Clone for PackOptions
impl Clone for PackOptions
Source§impl Debug for PackOptions
impl Debug for PackOptions
Auto Trait Implementations§
impl Freeze for PackOptions
impl RefUnwindSafe for PackOptions
impl Send for PackOptions
impl Sync for PackOptions
impl Unpin for PackOptions
impl UnsafeUnpin for PackOptions
impl UnwindSafe for PackOptions
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