pub enum HostOutcome {
Value(RecordedValue),
Error(String),
NotRecordable,
}Expand description
What a host call produced, when the trace records it.
Variants§
Value(RecordedValue)
The host answered with a value. A Cove Err(...) is a value like any
other and arrives here, not in HostOutcome::Error.
Error(String)
The host refused the call with a runtime error, which is not an ordinary Cove failure.
NotRecordable
The operation’s schema declares it not recordable, so the call dispatched but its result was deliberately not written down.
process.exit is the shipped example: handing its result back on a
replay would keep running a program that had ended.
Trait Implementations§
Source§impl Clone for HostOutcome
impl Clone for HostOutcome
Source§fn clone(&self) -> HostOutcome
fn clone(&self) -> HostOutcome
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 HostOutcome
impl RefUnwindSafe for HostOutcome
impl Send for HostOutcome
impl Sync for HostOutcome
impl Unpin for HostOutcome
impl UnsafeUnpin for HostOutcome
impl UnwindSafe for HostOutcome
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