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§impl Debug for ArtifactCatalog
impl Debug for ArtifactCatalog
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