#[non_exhaustive]pub enum SemanticRole {
Allow,
Deny,
Cancel,
Exit,
Value,
}Expand description
What a control MEANS, independent of how any surface draws it.
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.
Allow
Grants the thing being asked about.
Deny
Refuses it. The fail-closed default for an absent answer.
Cancel
Backs out without deciding.
Exit
Ends the session.
Value
Supplies a value rather than a decision.
Trait Implementations§
Source§impl Clone for SemanticRole
impl Clone for SemanticRole
impl Copy for SemanticRole
Source§impl Debug for SemanticRole
impl Debug for SemanticRole
Source§impl<'de> Deserialize<'de> for SemanticRole
impl<'de> Deserialize<'de> for SemanticRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SemanticRole
Source§impl PartialEq for SemanticRole
impl PartialEq for SemanticRole
Source§impl Serialize for SemanticRole
impl Serialize for SemanticRole
impl StructuralPartialEq for SemanticRole
Auto Trait Implementations§
impl Freeze for SemanticRole
impl RefUnwindSafe for SemanticRole
impl Send for SemanticRole
impl Sync for SemanticRole
impl Unpin for SemanticRole
impl UnsafeUnpin for SemanticRole
impl UnwindSafe for SemanticRole
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