pub enum CodeSpawnError {
Io(Error),
Json(JsonError),
Xml(Error),
Other(String),
}
Expand description
Error type for codespawn crate.
Variants§
Io(Error)
I/O error
Json(JsonError)
JSON parser error
Xml(Error)
XML parser error
Other(String)
Any other kind of error
Trait Implementations§
Source§impl Debug for CodeSpawnError
impl Debug for CodeSpawnError
Source§impl Display for CodeSpawnError
impl Display for CodeSpawnError
Source§impl Error for CodeSpawnError
impl Error for CodeSpawnError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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<Error> for CodeSpawnError
impl From<Error> for CodeSpawnError
Source§fn from(err: Error) -> CodeSpawnError
fn from(err: Error) -> CodeSpawnError
Converts to this type from the input type.
Source§impl From<Error> for CodeSpawnError
impl From<Error> for CodeSpawnError
Source§fn from(err: JsonError) -> CodeSpawnError
fn from(err: JsonError) -> CodeSpawnError
Converts to this type from the input type.
Source§impl From<Error> for CodeSpawnError
impl From<Error> for CodeSpawnError
Source§fn from(err: Error) -> CodeSpawnError
fn from(err: Error) -> CodeSpawnError
Converts to this type from the input type.
Source§impl From<ParseIntError> for CodeSpawnError
impl From<ParseIntError> for CodeSpawnError
Source§fn from(err: ParseIntError) -> CodeSpawnError
fn from(err: ParseIntError) -> CodeSpawnError
Converts to this type from the input type.
Source§impl From<String> for CodeSpawnError
impl From<String> for CodeSpawnError
Source§fn from(err: String) -> CodeSpawnError
fn from(err: String) -> CodeSpawnError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeSpawnError
impl !RefUnwindSafe for CodeSpawnError
impl Send for CodeSpawnError
impl Sync for CodeSpawnError
impl Unpin for CodeSpawnError
impl !UnwindSafe for CodeSpawnError
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