pub enum Availability {
Ready,
Unavailable(String),
}Expand description
Whether an addon can act at the moment.
Variants§
Ready
It can.
It cannot, and this is why, in words a user can act on.
“Spotify is not running” is useful. “Error 0x80070002” is not: a person reading it on a settings page cannot do anything with it.
Trait Implementations§
Source§impl Clone for Availability
impl Clone for Availability
Source§fn clone(&self) -> Availability
fn clone(&self) -> Availability
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 Availability
impl Debug for Availability
Source§impl PartialEq for Availability
impl PartialEq for Availability
Source§fn eq(&self, other: &Availability) -> bool
fn eq(&self, other: &Availability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Availability
impl StructuralPartialEq for Availability
Auto Trait Implementations§
impl Freeze for Availability
impl RefUnwindSafe for Availability
impl Send for Availability
impl Sync for Availability
impl Unpin for Availability
impl UnsafeUnpin for Availability
impl UnwindSafe for Availability
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