Skip to main content

ReactiveRuntime

Struct ReactiveRuntime 

Source
pub struct ReactiveRuntime { /* private fields */ }
Expand description

Thread-local arena storing all reactive signals, memos, effects, and scopes.

Implementations§

Source§

impl ReactiveRuntime

Core arena operations for ReactiveRuntime.

Source

pub fn stats(&self) -> ReactiveStats

Computes live diagnostic statistics for the runtime arena.

§Arguments
  • &Self - Reference to the reactive runtime.
§Returns
  • ReactiveStats - Snapshot of live node counts and write clock.

Trait Implementations§

Source§

impl Debug for ReactiveRuntime

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the struct fields as a debug struct, skipping excluded fields.

§Arguments
  • &mut ::std::fmt::Formatter<'_> - The formatter to write the representation into.
§Returns
  • ::std::fmt::Result - Success or failure of the formatting operation.
Source§

impl Default for ReactiveRuntime

Default initialization for ReactiveRuntime.

Source§

fn default() -> Self

Creates an empty reactive runtime with preallocated arena buffers.

§Returns
  • Self - The initialized runtime instance.

Auto Trait Implementations§

§

impl !RefUnwindSafe for ReactiveRuntime

§

impl !Send for ReactiveRuntime

§

impl !Sync for ReactiveRuntime

§

impl !UnwindSafe for ReactiveRuntime

§

impl Forget for ReactiveRuntime

§

impl Freeze for ReactiveRuntime

§

impl Move for ReactiveRuntime

§

impl Unpin for ReactiveRuntime
where *const u8 is !null: Unpin, Box<dyn Any>: Unpin, Rc<RefCell<dyn FnMut(&mut Option<Box<dyn Any>>) -> bool>>: Unpin, Rc<RefCell<dyn FnMut()>>: Unpin, Box<dyn FnOnce()>: Unpin, *const (): Unpin,

§

impl UnsafeUnpin for ReactiveRuntime

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.