pub struct ArtifactSubDirectory { /* private fields */ }
Expand description
A subdirectory of an output directory that contains artifacts for a test run, test suite, or test case.
Implementations§
Source§impl ArtifactSubDirectory
impl ArtifactSubDirectory
Sourcepub fn new_artifact(
&mut self,
metadata: impl Into<ArtifactMetadata>,
name: impl AsRef<Path>,
) -> Result<File, Error>
pub fn new_artifact( &mut self, metadata: impl Into<ArtifactMetadata>, name: impl AsRef<Path>, ) -> Result<File, Error>
Create a new file based artifact.
Sourcepub fn new_directory_artifact(
&mut self,
metadata: impl Into<ArtifactMetadata>,
name: impl AsRef<Path>,
) -> Result<PathBuf, Error>
pub fn new_directory_artifact( &mut self, metadata: impl Into<ArtifactMetadata>, name: impl AsRef<Path>, ) -> Result<PathBuf, Error>
Create a new directory based artifact.
Sourcepub fn path_to_artifact(&self, name: impl AsRef<Path>) -> Option<PathBuf>
pub fn path_to_artifact(&self, name: impl AsRef<Path>) -> Option<PathBuf>
Get the absolute path of the artifact at |name|, if present.
Sourcepub fn contents(&self) -> Vec<PathBuf>
pub fn contents(&self) -> Vec<PathBuf>
Return a list of paths of artifacts in the directory, relative to the root of the artifact directory.
Sourcepub fn artifact_iter(&self) -> Iter<'_, PathBuf, ArtifactMetadata>
pub fn artifact_iter(&self) -> Iter<'_, PathBuf, ArtifactMetadata>
Return an iterator over the artifacts in the directory.
Includes paths relative to the root of the artifact directory and the associated metadata.
Trait Implementations§
Source§impl Clone for ArtifactSubDirectory
impl Clone for ArtifactSubDirectory
Source§fn clone(&self) -> ArtifactSubDirectory
fn clone(&self) -> ArtifactSubDirectory
Returns a copy of the value. Read more
1.0.0 · 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 ArtifactSubDirectory
impl Debug for ArtifactSubDirectory
Source§impl PartialEq for ArtifactSubDirectory
impl PartialEq for ArtifactSubDirectory
impl Eq for ArtifactSubDirectory
impl StructuralPartialEq for ArtifactSubDirectory
Auto Trait Implementations§
impl Freeze for ArtifactSubDirectory
impl RefUnwindSafe for ArtifactSubDirectory
impl Send for ArtifactSubDirectory
impl Sync for ArtifactSubDirectory
impl Unpin for ArtifactSubDirectory
impl UnwindSafe for ArtifactSubDirectory
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)