pub enum SourceError {
Parse(ScanError),
Read(Error),
Config(Cow<'static, str>),
}Variants§
Trait Implementations§
Source§impl Debug for SourceError
impl Debug for SourceError
Source§impl Display for SourceError
impl Display for SourceError
Source§impl Error for SourceError
impl Error for SourceError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<&'static str> for SourceError
impl From<&'static str> for SourceError
Source§fn from(e: &'static str) -> SourceError
fn from(e: &'static str) -> SourceError
Converts to this type from the input type.
Source§impl From<Error> for SourceError
impl From<Error> for SourceError
Source§fn from(e: Error) -> SourceError
fn from(e: Error) -> SourceError
Converts to this type from the input type.
Source§impl From<ParseError> for SourceError
impl From<ParseError> for SourceError
Source§fn from(e: ParseError) -> SourceError
fn from(e: ParseError) -> SourceError
Converts to this type from the input type.
Source§impl From<ScanError> for SourceError
impl From<ScanError> for SourceError
Source§fn from(e: ScanError) -> SourceError
fn from(e: ScanError) -> SourceError
Converts to this type from the input type.
Source§impl From<SortError> for SourceError
impl From<SortError> for SourceError
Source§impl From<String> for SourceError
impl From<String> for SourceError
Source§fn from(e: String) -> SourceError
fn from(e: String) -> SourceError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SourceError
impl !RefUnwindSafe for SourceError
impl Send for SourceError
impl Sync for SourceError
impl Unpin for SourceError
impl !UnwindSafe for SourceError
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