pub enum CommandAvailability {
NotHandled,
Available,
Blocked,
}Expand description
Command availability query result used by UiTree::is_command_available (ADR 0218).
This is a pure query signal (no side effects). Consumers typically interpret:
Available: command should be treated as enabled for the current dispatch path.Blocked: command must not bubble further to ancestors for availability purposes.NotHandled: this node does not participate in availability for this command.
Variants§
Trait Implementations§
Source§impl Clone for CommandAvailability
impl Clone for CommandAvailability
Source§fn clone(&self) -> CommandAvailability
fn clone(&self) -> CommandAvailability
Returns a duplicate 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 CommandAvailability
impl Debug for CommandAvailability
Source§impl Default for CommandAvailability
impl Default for CommandAvailability
Source§fn default() -> CommandAvailability
fn default() -> CommandAvailability
Returns the “default value” for a type. Read more
Source§impl PartialEq for CommandAvailability
impl PartialEq for CommandAvailability
impl Copy for CommandAvailability
impl Eq for CommandAvailability
impl StructuralPartialEq for CommandAvailability
Auto Trait Implementations§
impl Freeze for CommandAvailability
impl RefUnwindSafe for CommandAvailability
impl Send for CommandAvailability
impl Sync for CommandAvailability
impl Unpin for CommandAvailability
impl UnsafeUnpin for CommandAvailability
impl UnwindSafe for CommandAvailability
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