Trait Read
pub trait Read: DefinedAt {
type Value: Deref;
// Required method
fn try_read(&self) -> Option<Self::Value>;
// Provided method
fn read(&self) -> Self::Value { ... }
}
Expand description
Give read-only access to a signal’s value by reference through a guard type, and subscribes the active reactive observer (an effect or computed) to changes in its value.