pub struct ServiceFactory { /* private fields */ }
Expand description
Factory for creating service instances
Implementations§
Source§impl ServiceFactory
impl ServiceFactory
Sourcepub fn new(config: ServiceConfig) -> Self
pub fn new(config: ServiceConfig) -> Self
Create a new service factory
Sourcepub fn create_card_service(&self) -> Arc<dyn CardService>
pub fn create_card_service(&self) -> Arc<dyn CardService>
Create a card service
Sourcepub fn create_dashboard_service(&self) -> Arc<dyn DashboardService>
pub fn create_dashboard_service(&self) -> Arc<dyn DashboardService>
Create a dashboard service
Sourcepub fn create_collection_service(&self) -> Arc<dyn CollectionService>
pub fn create_collection_service(&self) -> Arc<dyn CollectionService>
Create a collection service
Sourcepub fn create_query_service(&self) -> Arc<dyn QueryService>
pub fn create_query_service(&self) -> Arc<dyn QueryService>
Create a query service
Auto Trait Implementations§
impl Freeze for ServiceFactory
impl !RefUnwindSafe for ServiceFactory
impl Send for ServiceFactory
impl Sync for ServiceFactory
impl Unpin for ServiceFactory
impl !UnwindSafe for ServiceFactory
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