pub enum GuardMode {
CatchUnwind,
RUnwind,
}Expand description
FFI guard mode controlling how panics are caught at Rust-R boundaries.
Variants§
CatchUnwind
catch_unwind only. On panic: fire telemetry, then Rf_error (diverges).
Use when R longjmps cannot occur (the closure does not call R APIs).
RUnwind
R_UnwindProtect. Catches both Rust panics and R longjmps.
Use when the closure may call R APIs that can error.
Trait Implementations§
impl Copy for GuardMode
impl Eq for GuardMode
impl StructuralPartialEq for GuardMode
Auto Trait Implementations§
impl Freeze for GuardMode
impl RefUnwindSafe for GuardMode
impl Send for GuardMode
impl Sync for GuardMode
impl Unpin for GuardMode
impl UnsafeUnpin for GuardMode
impl UnwindSafe for GuardMode
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