[−][src]Struct blockchain_rocksdb::RocksBackend
Methods
impl<B: Block, A: Auxiliary<B>, S: RocksState> RocksBackend<B, A, S> where
B::Identifier: Encode + Decode,
B: Encode + Decode,
A: Encode + Decode,
A::Key: Encode + Decode,
[src]
B::Identifier: Encode + Decode,
B: Encode + Decode,
A: Encode + Decode,
A::Key: Encode + Decode,
pub fn open_or_create<P: AsRef<Path>, F>(path: P, f: F) -> Result<Self, Error> where
F: FnOnce(Arc<DB>) -> Result<(B, S), Error>,
[src]
F: FnOnce(Arc<DB>) -> Result<(B, S), Error>,
pub fn new_with_genesis<P: AsRef<Path>>(
path: P,
block: B,
state: S
) -> Result<Self, Error>
[src]
path: P,
block: B,
state: S
) -> Result<Self, Error>
pub fn from_existing<P: AsRef<Path>>(path: P) -> Result<Self, Error>
[src]
Trait Implementations
impl<B: Block, A: Auxiliary<B>, S> Clone for RocksBackend<B, A, S>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<B: Block, A: Auxiliary<B>, S> Store for RocksBackend<B, A, S>
[src]
type Block = B
Block type
type Auxiliary = A
Auxiliary type
type State = S
State type
type Error = Error
Error type
impl<B: Block, A: Auxiliary<B>, S: RocksState> ChainQuery for RocksBackend<B, A, S> where
B::Identifier: Encode + Decode,
B: Encode + Decode,
A: Encode + Decode,
A::Key: Encode + Decode,
[src]
B::Identifier: Encode + Decode,
B: Encode + Decode,
A: Encode + Decode,
A::Key: Encode + Decode,
fn head(&self) -> B::Identifier
[src]
fn genesis(&self) -> B::Identifier
[src]
fn contains(&self, id: &B::Identifier) -> Result<bool, Error>
[src]
fn is_canon(&self, id: &B::Identifier) -> Result<bool, Error>
[src]
fn lookup_canon_depth(
&self,
depth: usize
) -> Result<Option<B::Identifier>, Error>
[src]
&self,
depth: usize
) -> Result<Option<B::Identifier>, Error>
fn auxiliary(&self, key: &A::Key) -> Result<Option<A>, Error>
[src]
fn children_at(&self, id: &B::Identifier) -> Result<Vec<B::Identifier>, Error>
[src]
fn depth_at(&self, id: &B::Identifier) -> Result<usize, Error>
[src]
fn block_at(&self, id: &B::Identifier) -> Result<B, Error>
[src]
fn state_at(&self, id: &B::Identifier) -> Result<Self::State, Error>
[src]
impl<B: Block, A: Auxiliary<B>, S: RocksState> SharedCommittable for RocksBackend<B, A, S> where
B::Identifier: Encode + Decode,
B: Encode + Decode,
A: Encode + Decode,
A::Key: Encode + Decode,
[src]
B::Identifier: Encode + Decode,
B: Encode + Decode,
A: Encode + Decode,
A::Key: Encode + Decode,
Auto Trait Implementations
impl<B, A, S> Send for RocksBackend<B, A, S> where
A: Send,
B: Send,
S: Send,
<B as Block>::Identifier: Send + Sync,
A: Send,
B: Send,
S: Send,
<B as Block>::Identifier: Send + Sync,
impl<B, A, S> Sync for RocksBackend<B, A, S> where
A: Sync,
B: Sync,
S: Sync,
<B as Block>::Identifier: Send + Sync,
A: Sync,
B: Sync,
S: Sync,
<B as Block>::Identifier: Send + Sync,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,