pub struct GenesisCore { /* private fields */ }Expand description
Genesis acts as the embedded core of the interchangeable part architecture.
Implementations§
Source§impl GenesisCore
impl GenesisCore
Sourcepub fn new() -> Result<Self, GraphError>
pub fn new() -> Result<Self, GraphError>
Create a new instance of the Genesis core.
Sourcepub fn graph(&self) -> &DeterministicGraph
pub fn graph(&self) -> &DeterministicGraph
Access the underlying deterministic graph.
Sourcepub fn execute_transaction(
&self,
delta: &RdfDelta,
) -> Result<GraphReceipt, GraphError>
pub fn execute_transaction( &self, delta: &RdfDelta, ) -> Result<GraphReceipt, GraphError>
Execute a transaction with the core using an RdfDelta.
Trait Implementations§
Source§impl Clone for GenesisCore
impl Clone for GenesisCore
Source§fn clone(&self) -> GenesisCore
fn clone(&self) -> GenesisCore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for GenesisCore
impl !UnwindSafe for GenesisCore
impl Freeze for GenesisCore
impl Send for GenesisCore
impl Sync for GenesisCore
impl Unpin for GenesisCore
impl UnsafeUnpin for GenesisCore
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