pub struct UpdateValidationOutcome { /* private fields */ }Expand description
A read-only view of the decision the validator produced.
It is only obtained from UpdateValidationNext::run. The worker sends
the validator’s own decision, never a returned outcome.
Implementations§
Source§impl UpdateValidationOutcome
impl UpdateValidationOutcome
Sourcepub fn is_approved(&self) -> bool
pub fn is_approved(&self) -> bool
The validator approved the update.
Sourcepub fn is_rejected(&self) -> bool
pub fn is_rejected(&self) -> bool
The validator refused the update (update_validator_rejected).
Sourcepub fn is_worker_failure(&self) -> bool
pub fn is_worker_failure(&self) -> bool
The validator could not run (update_validation_worker_failed).
Sourcepub fn reason(&self) -> Option<&str>
pub fn reason(&self) -> Option<&str>
The failure reason the worker reports, or None for an approval.
Sourcepub fn rejection(&self) -> Option<&UpdateRejection>
pub fn rejection(&self) -> Option<&UpdateRejection>
The rejection or failure the worker reports, or None for an approval.
Trait Implementations§
Source§impl Clone for UpdateValidationOutcome
impl Clone for UpdateValidationOutcome
Source§fn clone(&self) -> UpdateValidationOutcome
fn clone(&self) -> UpdateValidationOutcome
Returns a copy of the value. Read more
1.0.0 · 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 UpdateValidationOutcome
impl Debug for UpdateValidationOutcome
Source§impl PartialEq for UpdateValidationOutcome
impl PartialEq for UpdateValidationOutcome
impl Eq for UpdateValidationOutcome
impl StructuralPartialEq for UpdateValidationOutcome
Auto Trait Implementations§
impl Freeze for UpdateValidationOutcome
impl RefUnwindSafe for UpdateValidationOutcome
impl Send for UpdateValidationOutcome
impl Sync for UpdateValidationOutcome
impl Unpin for UpdateValidationOutcome
impl UnwindSafe for UpdateValidationOutcome
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