pub enum SemanticTransitionOutcome {
Published(SemanticTransitionObservation),
Refused(SemanticTransitionRefusal),
}Expand description
Completed device outcome. A refusal carries no successor, selected-score receipts, or derivative authority; it is not a successful observation.
Variants§
Published(SemanticTransitionObservation)
Refused(SemanticTransitionRefusal)
Implementations§
Source§impl SemanticTransitionOutcome
impl SemanticTransitionOutcome
Sourcepub fn as_published(
&self,
) -> Result<&SemanticTransitionObservation, SemanticTransitionError>
pub fn as_published( &self, ) -> Result<&SemanticTransitionObservation, SemanticTransitionError>
Inspect the original result without relinquishing its invocation owner. A refusal preserves the same typed error as consuming the outcome.
pub fn into_published( self, ) -> Result<SemanticTransitionObservation, SemanticTransitionError>
Trait Implementations§
Source§impl Clone for SemanticTransitionOutcome
impl Clone for SemanticTransitionOutcome
Source§fn clone(&self) -> SemanticTransitionOutcome
fn clone(&self) -> SemanticTransitionOutcome
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 SemanticTransitionOutcome
impl Debug for SemanticTransitionOutcome
impl StructuralPartialEq for SemanticTransitionOutcome
Auto Trait Implementations§
impl Freeze for SemanticTransitionOutcome
impl RefUnwindSafe for SemanticTransitionOutcome
impl Send for SemanticTransitionOutcome
impl Sync for SemanticTransitionOutcome
impl Unpin for SemanticTransitionOutcome
impl UnsafeUnpin for SemanticTransitionOutcome
impl UnwindSafe for SemanticTransitionOutcome
Blanket Implementations§
impl<T> Allocation for T
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