pub enum KeyOutputState {
Pending,
Resolved(Option<KeyOutput>),
}
Expand description
Whether the key output is pending or resolved.
Variants§
Implementations§
Source§impl KeyOutputState
impl KeyOutputState
Sourcepub fn resolved(key_output: KeyOutput) -> Self
pub fn resolved(key_output: KeyOutput) -> Self
Constructs a KeyOutputState with a resolved key output.
Sourcepub fn no_output() -> Self
pub fn no_output() -> Self
Constructs a KeyOutputState indicating the key is resolved with no output.
Sourcepub fn pending() -> Self
pub fn pending() -> Self
Constructs a KeyOutputState indicating the key state is pending.
Sourcepub fn is_resolved(&self) -> bool
pub fn is_resolved(&self) -> bool
Predicate for whether the key output is resolved.
Trait Implementations§
Source§impl Clone for KeyOutputState
impl Clone for KeyOutputState
Source§fn clone(&self) -> KeyOutputState
fn clone(&self) -> KeyOutputState
Returns a copy 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 KeyOutputState
impl Debug for KeyOutputState
Source§impl PartialEq for KeyOutputState
impl PartialEq for KeyOutputState
impl Copy for KeyOutputState
impl Eq for KeyOutputState
impl StructuralPartialEq for KeyOutputState
Auto Trait Implementations§
impl Freeze for KeyOutputState
impl RefUnwindSafe for KeyOutputState
impl Send for KeyOutputState
impl Sync for KeyOutputState
impl Unpin for KeyOutputState
impl UnwindSafe for KeyOutputState
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