pub struct Ctx {
pub cancel: Option<CancelToken>,
pub no_batch: bool,
pub ext: Option<Arc<Ext>>,
pub fs: Option<Arc<dyn Fs>>,
pub progress: Option<ProgressFn>,
}Expand description
計算の文脈(呼び出したスレッドに置き、このモジュールの並列が作業のスレッドへ引き継ぐ)
Fields§
§cancel: Option<CancelToken>中断の印(with_cancel)。None は中断できない
no_batch: boolまとめ追跡(batch)を使わない(with_batch。結果は同じビットなので切り分け・比較のためだけ)
ext: Option<Arc<Ext>>拡張の表(crate::ext::with)。None はプロセスの既定
fs: Option<Arc<dyn Fs>>ファイルの口(crate::vfs::with)。None はプロセスの既定
progress: Option<ProgressFn>進み具合の受け手(with_progress)。None は知らせない
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Ctx
impl !UnwindSafe for Ctx
impl Freeze for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctx
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> 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