pub struct ProviderContext { /* private fields */ }Expand description
Non-secret context supplied to every provider factory.
Implementations§
Source§impl ProviderContext
impl ProviderContext
Sourcepub fn from_manifest(manifest: &DeploymentManifestV1) -> Self
pub fn from_manifest(manifest: &DeploymentManifestV1) -> Self
Creates context from a validated deployment manifest.
Sourcepub fn application_id(&self) -> &ApplicationId
pub fn application_id(&self) -> &ApplicationId
Returns the installed application identity.
Sourcepub fn installation_id(&self) -> &InstallationId
pub fn installation_id(&self) -> &InstallationId
Returns the installation identity.
Sourcepub fn runtime_mode(&self) -> RuntimeMode
pub fn runtime_mode(&self) -> RuntimeMode
Returns the explicit runtime mode.
Trait Implementations§
Source§impl Clone for ProviderContext
impl Clone for ProviderContext
Source§fn clone(&self) -> ProviderContext
fn clone(&self) -> ProviderContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderContext
impl Debug for ProviderContext
impl Eq for ProviderContext
Source§impl PartialEq for ProviderContext
impl PartialEq for ProviderContext
impl StructuralPartialEq for ProviderContext
Auto Trait Implementations§
impl Freeze for ProviderContext
impl RefUnwindSafe for ProviderContext
impl Send for ProviderContext
impl Sync for ProviderContext
impl Unpin for ProviderContext
impl UnsafeUnpin for ProviderContext
impl UnwindSafe for ProviderContext
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