pub struct Task { /* private fields */ }Expand description
First-class immutable task declaration owned by exactly one Phase.
Implementations§
Source§impl Task
impl Task
Sourcepub const fn display_kind(&self) -> TaskDisplayKind
pub const fn display_kind(&self) -> TaskDisplayKind
Returns whether the task renders iterative progress or activity status.
Sourcepub fn configuration_ordinal(&self) -> u64
pub fn configuration_ordinal(&self) -> u64
Returns the originating deterministic configuration ordinal.
Sourcepub fn configuration(&self) -> &TaskConfig
pub fn configuration(&self) -> &TaskConfig
Borrows the retained cheap task-configuration handle.
Sourcepub fn value(&self, key: &str) -> Option<&Value>
pub fn value(&self, key: &str) -> Option<&Value>
Borrows one fixed or swept parameter by exact key.
Sourcepub fn require_value(&self, key: &str) -> Result<&Value, ReportingError>
pub fn require_value(&self, key: &str) -> Result<&Value, ReportingError>
Borrows one required task parameter.
Sourcepub fn decode_value<T>(&self, key: &str) -> Result<T, ReportingError>where
T: DeserializeOwned,
pub fn decode_value<T>(&self, key: &str) -> Result<T, ReportingError>where
T: DeserializeOwned,
Decodes one required task parameter without first cloning its JSON tree.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &Value)> + '_
pub fn iter(&self) -> impl Iterator<Item = (&str, &Value)> + '_
Iterates every fixed or swept parameter without cloning values.
Sourcepub fn display_keys(&self) -> Option<&[Box<str>]>
pub fn display_keys(&self) -> Option<&[Box<str>]>
Borrows the exact keys used to generate the current label.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Task
impl !Sync for Task
impl !UnwindSafe for Task
impl Freeze for Task
impl Send for Task
impl Unpin for Task
impl UnsafeUnpin for Task
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