Trait reactive_graph::traits::ReadUntracked

source ·
pub trait ReadUntracked: Sized + DefinedAt {
    type Value: Deref;

    // Required method
    fn try_read_untracked(&self) -> Option<Self::Value>;

    // Provided method
    fn read_untracked(&self) -> Self::Value { ... }
}
Expand description

Give read-only access to a signal’s value by reference through a guard type, without tracking the value reactively.

Required Associated Types§

source

type Value: Deref

The guard type that will be returned, which can be dereferenced to the value.

Required Methods§

source

fn try_read_untracked(&self) -> Option<Self::Value>

Returns the guard, or None if the signal has already been disposed.

Provided Methods§

source

fn read_untracked(&self) -> Self::Value

Returns the guard.

§Panics

Panics if you try to access a signal that has been disposed.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, S> ReadUntracked for AsyncDerived<T, S>
where T: 'static, S: Storage<ArcAsyncDerived<T>>,

source§

impl<T, S> ReadUntracked for Memo<T, S>
where T: 'static, S: Storage<ArcMemo<T>>,

§

type Value = ReadGuard<T, Mapped<Plain<MemoInner<T>>, T>>

source§

impl<T, S> ReadUntracked for ReadSignal<T, S>
where T: 'static, S: Storage<ArcReadSignal<T>>,

§

type Value = ReadGuard<T, Plain<T>>

source§

impl<T, S> ReadUntracked for RwSignal<T, S>
where T: 'static, S: Storage<ArcRwSignal<T>>,

§

type Value = ReadGuard<T, Plain<T>>

source§

impl<T: 'static> ReadUntracked for ArcAsyncDerived<T>

source§

impl<T: 'static> ReadUntracked for ArcMemo<T>

§

type Value = ReadGuard<T, Mapped<Plain<MemoInner<T>>, T>>

source§

impl<T: 'static> ReadUntracked for ArcReadSignal<T>

§

type Value = ReadGuard<T, Plain<T>>

source§

impl<T: 'static> ReadUntracked for ArcRwSignal<T>

§

type Value = ReadGuard<T, Plain<T>>