pub enum CapturedOutput {
Stdout {
timestamp: SystemTime,
line: String,
},
Stderr {
timestamp: SystemTime,
line: String,
},
Host {
timestamp: SystemTime,
line: String,
},
}Variants§
Stdout
Stderr
Host
Host-side output captured in the parent process during this
test’s execution window. Attribution is overlap-based and
best-effort: a line that lands on the parent’s redirected
stdout/stderr pipe between the parent observing this test
start and finish is attributed to it. Sources include
HostedRpc owner dispatch methods, owner constructors that
are still emitting after returning, and any background
threads / tasks / subprocesses they spawn.
When tests run in parallel a single host-side line may be attributed to multiple tests whose windows overlap.
Implementations§
Source§impl CapturedOutput
impl CapturedOutput
pub fn stdout(line: String) -> Self
pub fn stderr(line: String) -> Self
Sourcepub fn host(timestamp: SystemTime, line: String) -> Self
pub fn host(timestamp: SystemTime, line: String) -> Self
Constructs a Host-tagged capture. Used by the parent’s host
capture finaliser to inject overlap-attributed host log lines
into each test’s captured output vec before the formatter
renders the suite.
pub fn timestamp(&self) -> SystemTime
pub fn line(&self) -> &str
Trait Implementations§
Source§impl Clone for CapturedOutput
impl Clone for CapturedOutput
Source§fn clone(&self) -> CapturedOutput
fn clone(&self) -> CapturedOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapturedOutput
impl Debug for CapturedOutput
Source§impl Ord for CapturedOutput
impl Ord for CapturedOutput
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CapturedOutput
impl PartialEq for CapturedOutput
Source§fn eq(&self, other: &CapturedOutput) -> bool
fn eq(&self, other: &CapturedOutput) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CapturedOutput
impl PartialOrd for CapturedOutput
impl Eq for CapturedOutput
impl StructuralPartialEq for CapturedOutput
Auto Trait Implementations§
impl Freeze for CapturedOutput
impl RefUnwindSafe for CapturedOutput
impl Send for CapturedOutput
impl Sync for CapturedOutput
impl Unpin for CapturedOutput
impl UnsafeUnpin for CapturedOutput
impl UnwindSafe for CapturedOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.