Struct possum::Handle

source ·
pub struct Handle { /* private fields */ }

Implementations§

source§

impl Handle

source

pub fn set_instance_limits(&mut self, limits: Limits) -> Result<()>

source

pub fn dir(&self) -> &PathBuf

source

pub fn new(dir: PathBuf) -> Result<Self>

source

pub fn block_size(&self) -> u64

source

pub fn new_writer(&self) -> Result<BatchWriter<'_>>

source

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.

source

pub fn read(&self) -> Result<Reader<'_>>

Begins a read transaction.

source

pub fn read_single(&self, key: &[u8]) -> Result<Option<SnapshotValue<Value>>>

source

pub fn single_write_from( &self, key: Vec<u8>, r: impl Read ) -> Result<(u64, WriteCommitResult)>

source

pub fn single_delete(&self, key: &[u8]) -> PubResult<Option<PossumStat>>

source

pub fn clone_from_fd(&mut self, key: Vec<u8>, fd: RawFd) -> Result<u64>

source

pub fn rename_item(&mut self, from: &[u8], to: &[u8]) -> PubResult<Timestamp>

source

pub fn walk_dir(&self) -> Result<Vec<WalkEntry>>

Walks the underlying files in the possum directory.

source

pub fn list_items(&self, prefix: &[u8]) -> PubResult<Vec<Item>>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V