pub struct LabeledArtifactCacheSpec { /* private fields */ }Expand description
Caller-labeled specification for one generic artifact batch entry.
The label is report and callback identity, not artifact-cache identity. The caller must keep it stable anywhere reports are composed across stages.
Implementations§
Source§impl LabeledArtifactCacheSpec
impl LabeledArtifactCacheSpec
Sourcepub fn new(label: impl Into<String>, spec: ArtifactCacheSpec) -> Self
pub fn new(label: impl Into<String>, spec: ArtifactCacheSpec) -> Self
Attach a caller-owned stable label to one artifact specification.
Sourcepub const fn spec(&self) -> &ArtifactCacheSpec
pub const fn spec(&self) -> &ArtifactCacheSpec
Underlying exact artifact specification.
Sourcepub fn into_parts(self) -> (String, ArtifactCacheSpec)
pub fn into_parts(self) -> (String, ArtifactCacheSpec)
Consume the entry into its label and artifact specification.
Trait Implementations§
Source§impl Clone for LabeledArtifactCacheSpec
impl Clone for LabeledArtifactCacheSpec
Source§fn clone(&self) -> LabeledArtifactCacheSpec
fn clone(&self) -> LabeledArtifactCacheSpec
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 LabeledArtifactCacheSpec
impl Debug for LabeledArtifactCacheSpec
impl Eq for LabeledArtifactCacheSpec
Source§impl PartialEq for LabeledArtifactCacheSpec
impl PartialEq for LabeledArtifactCacheSpec
impl StructuralPartialEq for LabeledArtifactCacheSpec
Auto Trait Implementations§
impl Freeze for LabeledArtifactCacheSpec
impl RefUnwindSafe for LabeledArtifactCacheSpec
impl Send for LabeledArtifactCacheSpec
impl Sync for LabeledArtifactCacheSpec
impl Unpin for LabeledArtifactCacheSpec
impl UnsafeUnpin for LabeledArtifactCacheSpec
impl UnwindSafe for LabeledArtifactCacheSpec
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.