pub struct ArtifactSet { /* private fields */ }Expand description
A named, verified subtree, usable without assuming a local filesystem.
Implementations§
Source§impl ArtifactSet
impl ArtifactSet
Sourcepub fn new(archive: RunArchive, prefix: impl Into<String>) -> Result<Self>
pub fn new(archive: RunArchive, prefix: impl Into<String>) -> Result<Self>
Selects an explicit subtree of an authoritative run inventory.
Sourcepub fn references(&self) -> impl Iterator<Item = &ArtifactRef>
pub fn references(&self) -> impl Iterator<Item = &ArtifactRef>
Iterates available immutable descriptors, preserving logical order.
Sourcepub fn reference(&self, relative: &str) -> Result<&ArtifactRef>
pub fn reference(&self, relative: &str) -> Result<&ArtifactRef>
Looks up the immutable descriptor for one relative file.
Sourcepub fn reader(&self, relative: &str) -> Result<Box<dyn Read + Send>>
pub fn reader(&self, relative: &str) -> Result<Box<dyn Read + Send>>
Opens a relative file as a verified bounded-memory stream.
Sourcepub fn materialize(
&self,
cache: &Path,
max_bytes: u64,
) -> Result<MaterializationLease>
pub fn materialize( &self, cache: &Path, max_bytes: u64, ) -> Result<MaterializationLease>
Materializes a protected local view for tools requiring paths.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ArtifactSet
impl !UnwindSafe for ArtifactSet
impl Forget for ArtifactSet
impl Freeze for ArtifactSetwhere
*const ArcInner<dyn Backend> is !null: Freeze,
PhantomData<ArcInner<dyn Backend>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Mutex<()>> is !null: Freeze,
PhantomData<ArcInner<Mutex<()>>>: Freeze,
*const ArcInner<PublicationPins> is !null: Freeze,
PhantomData<ArcInner<PublicationPins>>: Freeze,
*const LeafNode<String, ArtifactRef> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ArtifactRef)>>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<ConsumerLease> is !null: Freeze,
PhantomData<ArcInner<ConsumerLease>>: Freeze,
impl Move for ArtifactSet
impl Send for ArtifactSet
impl Sync for ArtifactSet
impl Unpin for ArtifactSet
impl UnsafeUnpin for ArtifactSetwhere
*const ArcInner<dyn Backend> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Backend>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Mutex<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin,
*const ArcInner<PublicationPins> is !null: UnsafeUnpin,
PhantomData<ArcInner<PublicationPins>>: UnsafeUnpin,
*const LeafNode<String, ArtifactRef> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ArtifactRef)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<ConsumerLease> is !null: UnsafeUnpin,
PhantomData<ArcInner<ConsumerLease>>: UnsafeUnpin,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more