pub enum PanicSource {
Worker,
Altrep,
UnwindProtect,
Connection,
}Expand description
Describes where a panic originated before being converted to an R error.
Variants§
Worker
Panic on the worker thread (caught by run_on_worker).
Altrep
Panic inside an ALTREP trampoline (caught by catch_altrep_panic).
UnwindProtect
Panic inside with_r_unwind_protect (caught by panic_payload_to_r_error).
Connection
Panic inside a connection callback trampoline.
Trait Implementations§
Source§impl Clone for PanicSource
impl Clone for PanicSource
Source§fn clone(&self) -> PanicSource
fn clone(&self) -> PanicSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PanicSource
impl Debug for PanicSource
Source§impl PartialEq for PanicSource
impl PartialEq for PanicSource
impl Copy for PanicSource
impl Eq for PanicSource
impl StructuralPartialEq for PanicSource
Auto Trait Implementations§
impl Freeze for PanicSource
impl RefUnwindSafe for PanicSource
impl Send for PanicSource
impl Sync for PanicSource
impl Unpin for PanicSource
impl UnsafeUnpin for PanicSource
impl UnwindSafe for PanicSource
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