Enum rusty_spine::SpineError
source · pub enum SpineError {
ParsingFailed {
reason: String,
},
NulError(NulError),
NotFound {
what: String,
name: String,
},
FailedToReadFile {
file: String,
},
PathNotUtf8,
CreationFailed {
what: String,
},
}
Expand description
Error types when interacting with the Spine runtime.
Variants§
ParsingFailed
A parsing error straight from the Spine C runtime.
NulError(NulError)
A wrapper for std::ffi::NulError
.
NotFound
An error when something couldn’t be found, represented by what
it was and its name
.
FailedToReadFile
An error when failing to read files.
PathNotUtf8
An error when a specified path is not utf-8.
CreationFailed
Failed to create the requested type.
Trait Implementations§
source§impl Debug for SpineError
impl Debug for SpineError
source§impl Display for SpineError
impl Display for SpineError
source§impl Error for SpineError
impl Error for SpineError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 SpineError
impl RefUnwindSafe for SpineError
impl Send for SpineError
impl Sync for SpineError
impl Unpin for SpineError
impl UnwindSafe for SpineError
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