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.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".