pub enum RecordedValue {
Carried(Transfer),
Opaque {
of: String,
shown: String,
},
}Expand description
One value as a trace records it.
A trace event crosses from the task that produced it to the sink that
writes it, so the values it carries are exactly the values that may cross
a task boundary: a Transfer, which is what the task-safety rule
produces. Everything else is kept as the opaque marker the format
already writes for it.
Variants§
Carried(Transfer)
A value the trace carries whole.
Opaque
A value no task boundary may carry — a vector, a task, a task scope — kept as the type it had and the text it printed as.
Implementations§
Source§impl RecordedValue
impl RecordedValue
Sourcepub fn of(value: &Value) -> RecordedValue
pub fn of(value: &Value) -> RecordedValue
Records value: whole when it may cross a boundary, and as what it
was when it may not.
Trait Implementations§
Source§impl Clone for RecordedValue
impl Clone for RecordedValue
Source§fn clone(&self) -> RecordedValue
fn clone(&self) -> RecordedValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecordedValue
impl RefUnwindSafe for RecordedValue
impl Send for RecordedValue
impl Sync for RecordedValue
impl Unpin for RecordedValue
impl UnsafeUnpin for RecordedValue
impl UnwindSafe for RecordedValue
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