pub enum SpacesError {
Invalid {
what: &'static str,
msg: String,
},
Missing {
what: &'static str,
hint: String,
},
Build(String),
Io(Error),
}Expand description
What can go wrong checking, building, loading or wiring code spaces. Messages are complete sentences an application can show as they are.
Variants§
Invalid
A source, plugin or line-up is wrong (what names the part: math, plugin, space, …).
Missing
Something needed is not there (what: “Rust toolchain”, …), with what to do about it.
Build(String)
Cargo failed; the message has the end of its output.
Io(Error)
Implementations§
Trait Implementations§
Source§impl Debug for SpacesError
impl Debug for SpacesError
Source§impl Display for SpacesError
impl Display for SpacesError
Source§impl Error for SpacesError
impl Error for SpacesError
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 !RefUnwindSafe for SpacesError
impl !UnwindSafe for SpacesError
impl Forget for SpacesError
impl Freeze for SpacesError
impl Move for SpacesError
impl Send for SpacesError
impl Sync for SpacesError
impl Unpin for SpacesError
impl UnsafeUnpin for SpacesError
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