pub enum OutputLedgerError {
RevisionRegression {
context: OutputFrameTrace,
previous: Revision,
},
NotCleared {
key: OutputKey,
context: Option<OutputFrameTrace>,
},
FrameAfterClosedScope {
context: OutputFrameTrace,
},
ClosedScopeNotCleared {
scope: ScopeId,
outputs: Vec<OutputKey>,
contexts: Vec<OutputFrameTrace>,
},
StateMismatch {
key: OutputKey,
context: Option<OutputFrameTrace>,
},
}Expand description
Output ledger assertion failure.
Variants§
RevisionRegression
A frame revision moved backward.
NotCleared
Output was not cleared.
Fields
§
context: Option<OutputFrameTrace>Last frame context for the output, if any.
FrameAfterClosedScope
A closed scope emitted a non-terminal frame.
Fields
§
context: OutputFrameTraceFrame that targeted the closed scope.
ClosedScopeNotCleared
Outputs owned by a closed scope were not cleared.
Fields
§
contexts: Vec<OutputFrameTrace>Last frame contexts for uncleared outputs.
StateMismatch
Current state differs from an expected baseline/rebaseline.
Fields
§
context: Option<OutputFrameTrace>Last frame context for the output, if any.
Trait Implementations§
Source§impl Clone for OutputLedgerError
impl Clone for OutputLedgerError
Source§fn clone(&self) -> OutputLedgerError
fn clone(&self) -> OutputLedgerError
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 moreSource§impl Debug for OutputLedgerError
impl Debug for OutputLedgerError
impl Eq for OutputLedgerError
Source§impl PartialEq for OutputLedgerError
impl PartialEq for OutputLedgerError
Source§fn eq(&self, other: &OutputLedgerError) -> bool
fn eq(&self, other: &OutputLedgerError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputLedgerError
Auto Trait Implementations§
impl Freeze for OutputLedgerError
impl RefUnwindSafe for OutputLedgerError
impl Send for OutputLedgerError
impl Sync for OutputLedgerError
impl Unpin for OutputLedgerError
impl UnsafeUnpin for OutputLedgerError
impl UnwindSafe for OutputLedgerError
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