#[non_exhaustive]pub enum RecordedOutcome {
Selected {
option_id: PermissionOptionId,
allows: bool,
},
Cancelled,
}Expand description
The “user response” that the main loop writes back to the policy.
Selected::allows is filled into AskOption by the policy during
SandboxPolicy::classify; the main loop looks it up by option_id and feeds it
back, avoiding the policy having to re-parse the option id it just sent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Selected
Cancelled
The user cancelled the turn. The policy does not update the authorization table, but may perform auditing.
Trait Implementations§
Source§impl Clone for RecordedOutcome
impl Clone for RecordedOutcome
Source§fn clone(&self) -> RecordedOutcome
fn clone(&self) -> RecordedOutcome
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 RecordedOutcome
impl Debug for RecordedOutcome
impl Eq for RecordedOutcome
Source§impl PartialEq for RecordedOutcome
impl PartialEq for RecordedOutcome
Source§fn eq(&self, other: &RecordedOutcome) -> bool
fn eq(&self, other: &RecordedOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RecordedOutcome
Auto Trait Implementations§
impl Freeze for RecordedOutcome
impl RefUnwindSafe for RecordedOutcome
impl Send for RecordedOutcome
impl Sync for RecordedOutcome
impl Unpin for RecordedOutcome
impl UnsafeUnpin for RecordedOutcome
impl UnwindSafe for RecordedOutcome
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