pub struct TransactionStore { /* private fields */ }Implementations§
Source§impl TransactionStore
impl TransactionStore
pub fn create(root: &Path) -> Result<Self, StoreError>
pub fn open(root: &Path) -> Result<Self, StoreError>
pub fn put(&self, transaction: &[u8]) -> Result<PutOutcome, StoreError>
pub fn contains(&self, id: TxId) -> bool
pub fn get(&self, id: TxId) -> Result<Option<Vec<u8>>, StoreError>
Auto Trait Implementations§
impl !Freeze for TransactionStore
impl RefUnwindSafe for TransactionStore
impl Send for TransactionStore
impl Sync for TransactionStore
impl Unpin for TransactionStore
impl UnsafeUnpin for TransactionStore
impl UnwindSafe for TransactionStore
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