Enum viceroy_lib::error::DictionaryConfigError[][src]

pub enum DictionaryConfigError {
Show 19 variants IoError { name: String, error: String, }, InvalidEntryType, InvalidName(String), InvalidNameEntry, InvalidDictionaryFileFormat(String), EmptyFileEntry, EmptyFormatEntry, InvalidFileEntry, InvalidFormatEntry, MissingDefault, MissingName, MissingFile, MissingFormat, UnrecognizedKey(String), DictionaryItemKeyTooLong { key: String, name: String, size: i32, }, DictionaryCountTooLong { name: String, size: i32, }, DictionaryItemValueWrongFormat { key: String, name: String, }, DictionaryItemValueTooLong { key: String, name: String, size: i32, }, DictionaryFileWrongFormat { name: String, },
}
Expand description

Errors that may occur while validating dictionary configurations.

Variants

IoError

An I/O error that occured while reading the file.

Fields of IoError

name: Stringerror: String
InvalidEntryType
InvalidName(String)

Tuple Fields of InvalidName

0: String
InvalidNameEntry
InvalidDictionaryFileFormat(String)

Tuple Fields of InvalidDictionaryFileFormat

0: String
EmptyFileEntry
EmptyFormatEntry
InvalidFileEntry
InvalidFormatEntry
MissingDefault
MissingName
MissingFile
MissingFormat
UnrecognizedKey(String)

Tuple Fields of UnrecognizedKey

0: String
DictionaryItemKeyTooLong

Fields of DictionaryItemKeyTooLong

key: Stringname: Stringsize: i32
DictionaryCountTooLong

Fields of DictionaryCountTooLong

name: Stringsize: i32
DictionaryItemValueWrongFormat

Fields of DictionaryItemValueWrongFormat

key: Stringname: String
DictionaryItemValueTooLong

Fields of DictionaryItemValueTooLong

key: Stringname: Stringsize: i32
DictionaryFileWrongFormat

Fields of DictionaryFileWrongFormat

name: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Query the “status” flags for the self file descriptor.

Create a new SetFdFlags value for use with set_fd_flags. Read more

Set the “status” flags for the self file descriptor. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more