Enum viceroy_lib::error::DictionaryConfigError
source · pub enum DictionaryConfigError {
Show 21 variants
IoError(Error),
InvalidContentsType,
InvalidInlineEntryType,
InvalidEntryType,
InvalidNameEntry,
InvalidDictionaryFormat(String),
EmptyFileEntry,
EmptyFormatEntry,
InvalidFileEntry,
InvalidFormatEntry,
MissingContents,
MissingDefault,
MissingName,
MissingFile,
MissingFormat,
UnrecognizedKey(String),
DictionaryItemKeyTooLong {
key: String,
size: i32,
},
DictionaryCountTooLong {
size: i32,
},
DictionaryItemValueWrongFormat {
key: String,
},
DictionaryItemValueTooLong {
key: String,
size: i32,
},
DictionaryFileWrongFormat,
}
Expand description
Errors that may occur while validating dictionary configurations.
Variants§
IoError(Error)
An I/O error that occurred while reading the file.
InvalidContentsType
InvalidInlineEntryType
InvalidEntryType
InvalidNameEntry
InvalidDictionaryFormat(String)
EmptyFileEntry
EmptyFormatEntry
InvalidFileEntry
InvalidFormatEntry
MissingContents
MissingDefault
MissingName
MissingFile
MissingFormat
UnrecognizedKey(String)
DictionaryItemKeyTooLong
DictionaryCountTooLong
DictionaryItemValueWrongFormat
DictionaryItemValueTooLong
DictionaryFileWrongFormat
Trait Implementations§
source§impl Debug for DictionaryConfigError
impl Debug for DictionaryConfigError
source§impl Display for DictionaryConfigError
impl Display for DictionaryConfigError
source§impl Error for DictionaryConfigError
impl Error for DictionaryConfigError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DictionaryConfigError
impl !RefUnwindSafe for DictionaryConfigError
impl Send for DictionaryConfigError
impl Sync for DictionaryConfigError
impl Unpin for DictionaryConfigError
impl !UnwindSafe for DictionaryConfigError
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more