Struct miau::error::ErrorImpl [−][src]
Underlying implementation of ConfigurationError
.
Implementations
impl ErrorImpl
[src]
pub fn get_code(&self) -> &ErrorCode
[src]
Returns reference to underlying cause of the error.
pub fn get_path(&self) -> Option<&[Key]>
[src]
Returns path in configuration at which error occured.
Returned value is a slice with configuration keys counting from root.
pub fn get_context(&self) -> Option<&[String]>
[src]
Returns additional context attached to error.
This information can contain, for instance, name of the file that was not found.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorImpl
[src]
impl Send for ErrorImpl
[src]
impl Sync for ErrorImpl
[src]
impl Unpin for ErrorImpl
[src]
impl !UnwindSafe for ErrorImpl
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,