pub struct TaskPath { /* private fields */ }Expand description
Which task a call came from: its parent’s path plus the parent’s count of
spawns at the moment it was spawned (history.md, Identity).
The root task’s path is empty and is written root; its first child is
root/1. Counters never restart: a task spawned after a checkpoint has
the path a replay from fact 1 gives it.
Implementations§
Source§impl TaskPath
impl TaskPath
Sourcepub fn new(counts: Vec<NonZeroU64>) -> TaskPath
pub fn new(counts: Vec<NonZeroU64>) -> TaskPath
The task whose spawn counts from the root down are counts.
Sourcepub fn child(&self, count: NonZeroU64) -> TaskPath
pub fn child(&self, count: NonZeroU64) -> TaskPath
The task this one spawned as its countth spawn.
Sourcepub fn counts(&self) -> &[NonZeroU64]
pub fn counts(&self) -> &[NonZeroU64]
The spawn counts from the root down, empty for the root.
Sourcepub fn parse(text: &str) -> Result<TaskPath, ParsePlaceError>
pub fn parse(text: &str) -> Result<TaskPath, ParsePlaceError>
The task path text writes: root, then / and a spawn count any
number of times.
§Errors
A ParsePlaceError when text is any other text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskPath
impl<'de> Deserialize<'de> for TaskPath
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<TaskPath, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<TaskPath, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskPath
Source§impl Ord for TaskPath
impl Ord for TaskPath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TaskPath
impl PartialOrd for TaskPath
impl StructuralPartialEq for TaskPath
Auto Trait Implementations§
impl Forget for TaskPath
impl Freeze for TaskPath
impl Move for TaskPath
impl RefUnwindSafe for TaskPath
impl Send for TaskPath
impl Sync for TaskPath
impl Unpin for TaskPath
impl UnsafeUnpin for TaskPath
impl UnwindSafe for TaskPath
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