pub enum ValueCapture {
Full,
Redacted,
}Expand description
How much of a host call’s arguments and results a trace records.
A trace is a file a human may read and may share, and env.get,
files.read, and documents.read all answer with whatever the host holds
— which may be a secret. ValueCapture::Full is the default because a
trace that does not carry values cannot be replayed, and replay is the
reason the values are recorded at all; ValueCapture::Redacted is the
form to share, and it is honest about what it dropped rather than
pretending the call never happened.
Variants§
Implementations§
Source§impl ValueCapture
impl ValueCapture
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The name this mode is written under in a trace header, and the name
cove run --trace-values accepts.
Sourcepub fn parse(text: &str) -> Option<ValueCapture>
pub fn parse(text: &str) -> Option<ValueCapture>
Parses the name ValueCapture::as_str produces.
Trait Implementations§
Source§impl Clone for ValueCapture
impl Clone for ValueCapture
Source§fn clone(&self) -> ValueCapture
fn clone(&self) -> ValueCapture
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 moreimpl Copy for ValueCapture
Source§impl Debug for ValueCapture
impl Debug for ValueCapture
impl Eq for ValueCapture
Source§impl PartialEq for ValueCapture
impl PartialEq for ValueCapture
Source§fn eq(&self, other: &ValueCapture) -> bool
fn eq(&self, other: &ValueCapture) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValueCapture
Auto Trait Implementations§
impl Freeze for ValueCapture
impl RefUnwindSafe for ValueCapture
impl Send for ValueCapture
impl Sync for ValueCapture
impl Unpin for ValueCapture
impl UnsafeUnpin for ValueCapture
impl UnwindSafe for ValueCapture
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.