Struct avalanche_types::rpcchainvm::database::manager::DatabaseManager
source · [−]pub struct DatabaseManager { /* private fields */ }
Implementations
sourceimpl DatabaseManager
impl DatabaseManager
sourcepub fn new_from_databases(
databases: Vec<VersionedDatabase>
) -> Box<dyn Manager + Send + Sync>
pub fn new_from_databases(
databases: Vec<VersionedDatabase>
) -> Box<dyn Manager + Send + Sync>
Returns a database manager from a Vec of versioned database.
Trait Implementations
sourceimpl Clone for DatabaseManager
impl Clone for DatabaseManager
sourcefn clone(&self) -> DatabaseManager
fn clone(&self) -> DatabaseManager
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Manager for DatabaseManager
impl Manager for DatabaseManager
sourcefn current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<VersionedDatabase>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<VersionedDatabase>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Returns the database with the current database version.
Auto Trait Implementations
impl !RefUnwindSafe for DatabaseManager
impl Send for DatabaseManager
impl Sync for DatabaseManager
impl Unpin for DatabaseManager
impl !UnwindSafe for DatabaseManager
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request