pub enum Availability {
Denied,
Available {
notes: Vec<String>,
},
}Expand description
Whether a reader could use a capability.
Variants§
Denied
No call can proceed.
Available
Some call could proceed. notes say what limits it, such as a filter
or a person’s approval, as sentences documentation shows the reader.
Implementations§
Source§impl Availability
impl Availability
pub fn is_available(&self) -> bool
Trait Implementations§
Source§impl Clone for Availability
impl Clone for Availability
Source§impl Debug for Availability
impl Debug for Availability
impl Eq for Availability
Source§impl PartialEq for Availability
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.