pub struct Handle { /* private fields */ }Implementations§
source§impl Handle
impl Handle
pub fn set_instance_limits(&mut self, limits: Limits) -> Result<()>
pub fn dir(&self) -> &PathBuf
pub fn new(dir: PathBuf) -> Result<Self>
pub fn block_size(&self) -> u64
pub fn new_writer(&self) -> Result<BatchWriter<'_>>
sourcepub fn start_deferred_transaction_for_read(&self) -> Result<OwnedReadTx<'_>>
pub fn start_deferred_transaction_for_read(&self) -> Result<OwnedReadTx<'_>>
Starts a deferred transaction (the default). There is no guaranteed read-only transaction mode. There might be pragmas that can limit to read only statements.
pub fn read_single(&self, key: &[u8]) -> Result<Option<SnapshotValue<Value>>>
pub fn single_write_from( &self, key: Vec<u8>, r: impl Read ) -> Result<(u64, WriteCommitResult)>
pub fn single_delete(&self, key: &[u8]) -> PubResult<Option<PossumStat>>
pub fn clone_from_fd(&mut self, key: Vec<u8>, fd: RawFd) -> Result<u64>
pub fn rename_item(&mut self, from: &[u8], to: &[u8]) -> PubResult<Timestamp>
sourcepub fn walk_dir(&self) -> Result<Vec<WalkEntry>>
pub fn walk_dir(&self) -> Result<Vec<WalkEntry>>
Walks the underlying files in the possum directory.
pub fn list_items(&self, prefix: &[u8]) -> PubResult<Vec<Item>>
Auto Trait Implementations§
impl RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl UnwindSafe for Handle
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