pub struct KwebDb { /* private fields */ }Implementations§
Source§impl KwebDb
impl KwebDb
pub fn open(path: impl AsRef<Path>, config: Config) -> Result<Self>
pub fn start_transaction( &self, provenance: Provenance, ) -> Result<Transaction<'_>>
pub fn accept_transaction(&self, package: TransactionPackage) -> Result<bool>
pub fn accept_gossip_transaction( &self, package: TransactionPackage, source: &dyn TransactionSource, ) -> Result<bool>
pub fn get_node(&self, id: NodeId) -> Result<Node>
pub fn get_node_history(&self, id: NodeId) -> Result<NodeHistory>
pub fn get_object(&self, id: ObjectId) -> Result<Vec<u8>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KwebDb
impl !UnwindSafe for KwebDb
impl Freeze for KwebDb
impl Send for KwebDb
impl Sync for KwebDb
impl Unpin for KwebDb
impl UnsafeUnpin for KwebDb
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