Struct shuttle_runtime::ProvisionerFactory
source · pub struct ProvisionerFactory { /* private fields */ }Expand description
A factory (service locator) which goes through the provisioner crate
Trait Implementations§
source§impl Factory for ProvisionerFactory
impl Factory for ProvisionerFactory
source§fn get_db_connection<'life0, 'async_trait>(
&'life0 mut self,
db_type: Type
) -> Pin<Box<dyn Future<Output = Result<DatabaseReadyInfo, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_db_connection<'life0, 'async_trait>( &'life0 mut self, db_type: Type ) -> Pin<Box<dyn Future<Output = Result<DatabaseReadyInfo, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Get a database connection
source§fn get_secrets<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_secrets<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, String>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Get all the secrets for a service
source§fn get_service_name(&self) -> ServiceName
fn get_service_name(&self) -> ServiceName
Get the name for the service being deployed
source§fn get_environment(&self) -> Environment
fn get_environment(&self) -> Environment
Get the environment for this deployment
Auto Trait Implementations§
impl !RefUnwindSafe for ProvisionerFactory
impl Send for ProvisionerFactory
impl Sync for ProvisionerFactory
impl Unpin for ProvisionerFactory
impl !UnwindSafe for ProvisionerFactory
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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