pub struct ArtifactCatalog(/* private fields */);Expand description
Immutable Instance-to-Artifact mapping injected by the Generation Supervisor.
Implementations§
Source§impl ArtifactCatalog
impl ArtifactCatalog
Sourcepub fn with_artifact(
self,
instance_key: impl Into<String>,
artifact: ArtifactHandle,
) -> Result<Self, RuntimeFailure>
pub fn with_artifact( self, instance_key: impl Into<String>, artifact: ArtifactHandle, ) -> Result<Self, RuntimeFailure>
Adds one exact execution input and rejects duplicate Instance authority.
Sourcepub fn require(
&self,
instance_key: &str,
) -> Result<&ArtifactHandle, RuntimeFailure>
pub fn require( &self, instance_key: &str, ) -> Result<&ArtifactHandle, RuntimeFailure>
Resolves the one selected execution input for an Instance.
Trait Implementations§
Source§impl Clone for ArtifactCatalog
impl Clone for ArtifactCatalog
Source§fn clone(&self) -> ArtifactCatalog
fn clone(&self) -> ArtifactCatalog
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 ArtifactCatalog
impl Debug for ArtifactCatalog
Source§impl Default for ArtifactCatalog
impl Default for ArtifactCatalog
Source§fn default() -> ArtifactCatalog
fn default() -> ArtifactCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArtifactCatalog
impl RefUnwindSafe for ArtifactCatalog
impl Send for ArtifactCatalog
impl Sync for ArtifactCatalog
impl Unpin for ArtifactCatalog
impl UnsafeUnpin for ArtifactCatalog
impl UnwindSafe for ArtifactCatalog
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