pub struct RunOpts<'a> {
pub threads: Option<usize>,
pub out: Option<&'a Path>,
pub header: String,
pub resume: bool,
pub stage: &'static str,
pub keep_going: bool,
}Expand description
実行の設定
Fields§
§threads: Option<usize>スレッド数(lensbench_core::par::with_threads と同じ。None は既定、逐次の指定の中では逐次)
out: Option<&'a Path>結果のファイル(JSONL)。None なら書かない
header: String頭(JSON のオブジェクトの文字列)。再開のときは同じでなければならない
resume: bool同じ頭のファイルがあれば続きから(false なら書き直す)
stage: &'static str進み具合の段の名前(Progress::stage。"" は段なし)
keep_going: boolタスクが失敗しても止めない: 失敗は結果 {"error": "…"} の行として書いて次へ進み、
RunSummary::failed に数える。false(既定)なら新しいタスクを始めず最初のエラーを返す
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RunOpts<'a>
impl<'a> RefUnwindSafe for RunOpts<'a>
impl<'a> Send for RunOpts<'a>
impl<'a> Sync for RunOpts<'a>
impl<'a> Unpin for RunOpts<'a>
impl<'a> UnsafeUnpin for RunOpts<'a>
impl<'a> UnwindSafe for RunOpts<'a>
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> 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