pub struct Stage { /* private fields */ }Expand description
Human-readable sub-stage attached to subsequently emitted events.
Implementations§
Source§impl Stage
impl Stage
Sourcepub fn new(id: &str, name: &str) -> Self
pub fn new(id: &str, name: &str) -> Self
Creates stage metadata without sequence position information.
Sourcepub const fn position(self, position: u64, total: u64) -> Self
pub const fn position(self, position: u64, total: u64) -> Self
Sets one-based stage position and total number of stages.
Sourcepub const fn position_value(&self) -> Option<u64>
pub const fn position_value(&self) -> Option<u64>
Returns the one-based position, if present.
Trait Implementations§
impl Eq for Stage
impl StructuralPartialEq for Stage
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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