Struct avalanche_types::subnet::rpc::database::manager::DatabaseManager
source · pub struct DatabaseManager { /* private fields */ }
Implementations§
source§impl DatabaseManager
impl DatabaseManager
sourcepub fn from_databases(
dbs: Vec<VersionedDatabase>
) -> Box<dyn Manager + Send + Sync>
pub fn from_databases( dbs: Vec<VersionedDatabase> ) -> Box<dyn Manager + Send + Sync>
Returns a database manager from a Vec of versioned database.
Trait Implementations§
source§impl Clone for DatabaseManager
impl Clone for DatabaseManager
source§fn clone(&self) -> DatabaseManager
fn clone(&self) -> DatabaseManager
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Manager for DatabaseManager
impl Manager for DatabaseManager
source§fn current<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<VersionedDatabase>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn current<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<VersionedDatabase>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: '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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request