pub struct Transaction { /* private fields */ }Implementations§
Source§impl Transaction
impl Transaction
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn try_open(path: impl AsRef<Path>) -> Result<Self>
pub fn open_locked(path: impl AsRef<Path>) -> Result<Self>
pub fn try_open_locked(path: impl AsRef<Path>) -> Result<Self>
pub fn path(&self) -> &Path
pub fn read(&self) -> Result<Vec<u8>>
pub fn write(&self, data: &[u8]) -> Result<()>
pub fn execute<F>(&self, operation: F) -> Result<Vec<u8>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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