Enum SemanticActionKind
pub enum SemanticActionKind {
Verb(Action),
App(EncodedAction),
AppDeferred {
address: ActionAddress,
},
AppPrompted {
prompt: String,
placeholder: String,
collects: Collects,
},
}Expand description
How a SemanticAction is carried out when invoked.
Variants§
Verb(Action)
A generic accessibility verb (Action) — focus, activate,
increment/decrement, expand/collapse, set-value. Routed through
Widget::perform_action with the
App’s generic focus/click fallback, exactly like an AccessKit
ActionRequest.
App(EncodedAction)
An app action from the Tilo action model, ready to fire.
encoded is the byte-identical EncodedAction the on-screen affordance
and the Ctrl+K palette dispatch — invoking it replays the same action.
AppDeferred
Inert address of a no-argument creation; only the current owner encodes it.
Fields
address: ActionAddressAppPrompted
An app action that first needs one free-text argument (a rename, a “new
page named…”). The argument is supplied to
SemanticTree::build_prompted to produce the concrete EncodedAction.
Fields
collects: CollectsWhether that argument names words somebody says or the address of
content that already exists. This tree’s audience is callers with no
screen: offered a plain text field for a Collects::Content
argument, one can only type something that was never going to resolve.
Trait Implementations§
§impl Clone for SemanticActionKind
impl Clone for SemanticActionKind
§fn clone(&self) -> SemanticActionKind
fn clone(&self) -> SemanticActionKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for SemanticActionKind
impl Debug for SemanticActionKind
§impl PartialEq for SemanticActionKind
impl PartialEq for SemanticActionKind
§fn eq(&self, other: &SemanticActionKind) -> bool
fn eq(&self, other: &SemanticActionKind) -> bool
self and other values to be equal, and is used by ==.impl Eq for SemanticActionKind
impl StructuralPartialEq for SemanticActionKind
Auto Trait Implementations§
impl Freeze for SemanticActionKind
impl RefUnwindSafe for SemanticActionKind
impl Send for SemanticActionKind
impl Sync for SemanticActionKind
impl Unpin for SemanticActionKind
impl UnsafeUnpin for SemanticActionKind
impl UnwindSafe for SemanticActionKind
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more