pub enum ErrorType {
Jump(Tag),
Error(ExceptionClass, Cow<'static, str>),
Exception(Exception),
}
Expand description
The possible types of Error
.
Variants§
Jump(Tag)
An interrupt, such as break
or throw
.
Error(ExceptionClass, Cow<'static, str>)
An error generated in Rust code that will raise an exception when returned to Ruby.
Exception(Exception)
A Ruby Exception
captured from Ruby as an Error.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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