#[non_exhaustive]pub enum DogsConfigError {
Toml(Error),
}Expand description
Why dogs.toml could not be read
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Debug for DogsConfigError
Manual, not derived: toml::de::Error’s own Debug forwards to
toml_edit::TomlError, which keeps the whole source document in a
raw field so Display can quote a line of context. A derived
Debug here would print all of it, and this is the one type in the
workspace whose source document, dogs.toml, is where an operator
pastes a webhook URL.
impl Debug for DogsConfigError
Manual, not derived: toml::de::Error’s own Debug forwards to
toml_edit::TomlError, which keeps the whole source document in a
raw field so Display can quote a line of context. A derived
Debug here would print all of it, and this is the one type in the
workspace whose source document, dogs.toml, is where an operator
pastes a webhook URL.
The redaction is the parser’s short message(), never the line it
quotes. Display below still shows the full line-and-column
rendering, the surface meant for the operator who broke their own
file; Debug is what a log captures instead.
Source§impl Display for DogsConfigError
impl Display for DogsConfigError
Source§impl Error for DogsConfigError
impl Error for DogsConfigError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 DogsConfigError
impl RefUnwindSafe for DogsConfigError
impl Send for DogsConfigError
impl Sync for DogsConfigError
impl Unpin for DogsConfigError
impl UnsafeUnpin for DogsConfigError
impl UnwindSafe for DogsConfigError
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