pub struct PrioritizedIntents {
pub ordered_intents: Vec<IntentRef>,
}Expand description
An Intent that evaluates a series of specified
ordered_intents for execution.
The first intent that matches an enabled action is used.
Fields§
§ordered_intents: Vec<IntentRef>List of intents to be evaluated in order for execution. When an
AnyAction::is_enabled returns true, that action will be invoked and progression
through the ordered intents stops.
Implementations§
Source§impl PrioritizedIntents
impl PrioritizedIntents
Sourcepub fn new(ordered_intents: Vec<IntentRef>) -> PrioritizedIntents
pub fn new(ordered_intents: Vec<IntentRef>) -> PrioritizedIntents
Creates an intent that is used with PrioritizedAction to specify a list of intents,
the first available of which will be used.
Trait Implementations§
Source§impl Debug for PrioritizedIntents
impl Debug for PrioritizedIntents
Source§impl Intent for PrioritizedIntents
impl Intent for PrioritizedIntents
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
The value behind the erased intent, for the downcast an
Action does to recover its
own intent type.Source§fn intent_type(&self) -> TypeId
fn intent_type(&self) -> TypeId
Dart’s
intent.runtimeType: the key an Actions map is looked up with.Source§fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
fn debug_fill_properties(&self, properties: &mut DiagnosticPropertiesBuilder)
Dart’s
Intent.debugFillProperties, from Diagnosticable: an intent adds its own
fields.Source§fn to_string_short(&self) -> String
fn to_string_short(&self) -> String
Dart’s
Intent.toStringShort: the type and the identity.Source§fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
fn diagnostics_node(&self, name: Option<String>) -> DiagnosticableNode
Dart’s
Intent.toDiagnosticsNode(name:), from Diagnosticable.Source§fn diagnostic_string(&self) -> String
fn diagnostic_string(&self) -> String
Dart’s
Diagnosticable.toString, which a property holding an intent prints.Auto Trait Implementations§
impl !RefUnwindSafe for PrioritizedIntents
impl !Send for PrioritizedIntents
impl !Sync for PrioritizedIntents
impl !UnwindSafe for PrioritizedIntents
impl Forget for PrioritizedIntents
impl Freeze for PrioritizedIntents
impl Move for PrioritizedIntents
impl Unpin for PrioritizedIntents
impl UnsafeUnpin for PrioritizedIntents
Blanket Implementations§
Source§impl<T> ActionIntent for Twhere
T: Intent,
impl<T> ActionIntent for Twhere
T: Intent,
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