pub struct RuntimeError<Source: 'static + Error> { /* private fields */ }Expand description
Error implementation for crate::GarnishRuntime instruction methods.
Implementations§
Source§impl<Source: 'static + Error> RuntimeError<Source>
impl<Source: 'static + Error> RuntimeError<Source>
pub fn new(message: &str) -> Self
pub fn new_message(message: String) -> Self
pub fn unsupported_types() -> Self
pub fn get_message(&self) -> &String
pub fn get_type(&self) -> ErrorType
Trait Implementations§
Source§impl<Source: 'static + Error> Default for RuntimeError<Source>
impl<Source: 'static + Error> Default for RuntimeError<Source>
Source§impl<Source: 'static + Error> Display for RuntimeError<Source>
impl<Source: 'static + Error> Display for RuntimeError<Source>
Source§impl<Source: 'static + Error> Error for RuntimeError<Source>
impl<Source: 'static + Error> Error for RuntimeError<Source>
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()
Source§impl<Source: 'static + Error> From<RuntimeError<Source>> for String
impl<Source: 'static + Error> From<RuntimeError<Source>> for String
Source§fn from(err: RuntimeError<Source>) -> Self
fn from(err: RuntimeError<Source>) -> Self
Converts to this type from the input type.
Source§impl<Source: 'static + Error> From<Source> for RuntimeError<Source>
impl<Source: 'static + Error> From<Source> for RuntimeError<Source>
impl<Source: Eq + 'static + Error> Eq for RuntimeError<Source>
impl<Source: 'static + Error> StructuralPartialEq for RuntimeError<Source>
Auto Trait Implementations§
impl<Source> Freeze for RuntimeError<Source>where
Source: Freeze,
impl<Source> RefUnwindSafe for RuntimeError<Source>where
Source: RefUnwindSafe,
impl<Source> Send for RuntimeError<Source>where
Source: Send,
impl<Source> Sync for RuntimeError<Source>where
Source: Sync,
impl<Source> Unpin for RuntimeError<Source>where
Source: Unpin,
impl<Source> UnwindSafe for RuntimeError<Source>where
Source: UnwindSafe,
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