pub enum OptionLookupError {
InvalidName(String),
AmbiguousPrefix(String),
InvalidIndexSyntax(String),
UserOptionArrayIndex(String),
}Expand description
Error returned when resolving an option name before validating its value.
Variants§
InvalidName(String)
The option name does not match any known option or user option.
AmbiguousPrefix(String)
The option prefix matches more than one known option.
InvalidIndexSyntax(String)
The option array index syntax is malformed.
UserOptionArrayIndex(String)
User options do not support array indexes.
Implementations§
Source§impl OptionLookupError
impl OptionLookupError
Sourcepub const fn is_quiet_set_option_lookup_error(&self) -> bool
pub const fn is_quiet_set_option_lookup_error(&self) -> bool
Returns whether tmux set-option -q should suppress this lookup error.
Sourcepub fn into_rmux_error(self) -> RmuxError
pub fn into_rmux_error(self) -> RmuxError
Converts the typed lookup error into the existing user-facing RMUX error.
Trait Implementations§
Source§impl Clone for OptionLookupError
impl Clone for OptionLookupError
Source§fn clone(&self) -> OptionLookupError
fn clone(&self) -> OptionLookupError
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 OptionLookupError
impl Debug for OptionLookupError
impl Eq for OptionLookupError
Source§impl PartialEq for OptionLookupError
impl PartialEq for OptionLookupError
impl StructuralPartialEq for OptionLookupError
Auto Trait Implementations§
impl Freeze for OptionLookupError
impl RefUnwindSafe for OptionLookupError
impl Send for OptionLookupError
impl Sync for OptionLookupError
impl Unpin for OptionLookupError
impl UnsafeUnpin for OptionLookupError
impl UnwindSafe for OptionLookupError
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