pub trait Model: Send + Sync {
// Required methods
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn application_dldata(&self) -> &dyn ApplicationDlDataModel;
fn application_uldata(&self) -> &dyn ApplicationUlDataModel;
fn coremgr_opdata(&self) -> &dyn CoremgrOpDataModel;
fn network_dldata(&self) -> &dyn NetworkDlDataModel;
fn network_uldata(&self) -> &dyn NetworkUlDataModel;
}
Expand description
The top level trait to get all models (tables/collections).
Required Methods§
Sourcefn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Close database connection.
Sourcefn application_dldata(&self) -> &dyn ApplicationDlDataModel
fn application_dldata(&self) -> &dyn ApplicationDlDataModel
To get the application downlink data model.
Sourcefn application_uldata(&self) -> &dyn ApplicationUlDataModel
fn application_uldata(&self) -> &dyn ApplicationUlDataModel
To get the application uplink data model.
Sourcefn coremgr_opdata(&self) -> &dyn CoremgrOpDataModel
fn coremgr_opdata(&self) -> &dyn CoremgrOpDataModel
To get the coremgr operation data model.
Sourcefn network_dldata(&self) -> &dyn NetworkDlDataModel
fn network_dldata(&self) -> &dyn NetworkDlDataModel
To get the network downlink data model.
Sourcefn network_uldata(&self) -> &dyn NetworkUlDataModel
fn network_uldata(&self) -> &dyn NetworkUlDataModel
To get the network uplink data model.