Skip to main content

RunArtifacts

Struct RunArtifacts 

Source
pub struct RunArtifacts { /* private fields */ }

Implementations§

Source§

impl RunArtifacts

Source

pub fn create(transcript_kind: TranscriptKind) -> Result<Self>

Source

pub fn create_for_runner( runner_name: &str, transcript_kind: TranscriptKind, ) -> Result<Self>

Source

pub fn create_in( state_root: impl AsRef<Path>, transcript_kind: TranscriptKind, ) -> Result<Self>

Source

pub fn create_in_for_runner( state_root: impl AsRef<Path>, transcript_kind: TranscriptKind, runner_name: &str, ) -> Result<Self>

Source

pub fn create_in_with_id_source<F>( state_root: impl AsRef<Path>, transcript_kind: TranscriptKind, next_run_id: F, ) -> Result<Self>
where F: FnMut() -> String,

Source

pub fn create_in_with_id_source_for_runner<F>( state_root: impl AsRef<Path>, transcript_kind: TranscriptKind, runner_name: &str, next_run_id: F, ) -> Result<Self>
where F: FnMut() -> String,

Source

pub fn create_in_with_id_source_and_transcript_opener<F, O>( state_root: impl AsRef<Path>, transcript_kind: TranscriptKind, next_run_id: F, transcript_opener: O, ) -> Result<Self>
where F: FnMut() -> String, O: FnOnce(&Path) -> Result<File>,

Source

pub fn create_in_with_id_source_and_transcript_opener_for_runner<F, O>( state_root: impl AsRef<Path>, transcript_kind: TranscriptKind, runner_name: &str, next_run_id: F, transcript_opener: O, ) -> Result<Self>
where F: FnMut() -> String, O: FnOnce(&Path) -> Result<File>,

Source

pub fn run_dir(&self) -> &Path

Source

pub fn output_path(&self) -> &Path

Source

pub fn transcript_path(&self) -> &Path

Source

pub fn transcript_warning(&self) -> Option<&str>

Source

pub fn record_stdout(&self, text: &str) -> Result<()>

Source

pub fn write_output_text(&self, text: &str) -> Result<()>

Source

pub fn footer_line(&self) -> String

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.