pub struct REngine;Expand description
Handle to an initialized R runtime.
This is a marker type indicating R has been initialized for this process.
R cleanup (via Rf_endEmbeddedR) is intentionally NOT called because it
performs non-reentrant operations that can crash if called during Drop
or concurrent with other cleanup. The OS reclaims all resources on process exit.
Implementations§
Source§impl REngine
impl REngine
Sourcepub fn build() -> REngineBuilder
pub fn build() -> REngineBuilder
Create a new builder for configuring R initialization.
Sourcepub unsafe fn process_events(&self)
pub unsafe fn process_events(&self)
Process pending R events.
Call this periodically to allow R to handle events, especially when running a long computation.
§Safety
Must be called from the thread that initialized R.
Sourcepub unsafe fn check_interrupt(&self)
pub unsafe fn check_interrupt(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for REngine
impl RefUnwindSafe for REngine
impl Send for REngine
impl Sync for REngine
impl Unpin for REngine
impl UnsafeUnpin for REngine
impl UnwindSafe for REngine
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes