pub struct Outcome<T> { /* private fields */ }Expand description
Successful output and the decisions that selected its permitted contract. Dereferences to the ordinary codec output; reports never replace errors for a violated requirement.
Implementations§
Source§impl<T> Outcome<T>
impl<T> Outcome<T>
Sourcepub const fn from_parts(output: T, report: OperationReport) -> Self
pub const fn from_parts(output: T, report: OperationReport) -> Self
Assemble an adapter’s completed output and bounded decision record. This container does not independently validate the adapter’s postconditions.
Sourcepub fn into_output(self) -> T
pub fn into_output(self) -> T
Take the ordinary codec output, discarding its decision report.
Sourcepub fn into_parts(self) -> (T, OperationReport)
pub fn into_parts(self) -> (T, OperationReport)
Take both the ordinary output and its decision report.
Sourcepub const fn report(&self) -> &OperationReport
pub const fn report(&self) -> &OperationReport
Decisions taken before producing this output.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Outcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for Outcome<T>where
T: RefUnwindSafe,
impl<T> Send for Outcome<T>where
T: Send,
impl<T> Sync for Outcome<T>where
T: Sync,
impl<T> Unpin for Outcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for Outcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Outcome<T>where
T: UnwindSafe,
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