pub trait ReadUntrackedOptional: Sized + DefinedAt {
type Value;
// Required method
fn try_read_untracked(&self) -> Option<Self::Value>;
// Provided method
fn read_untracked(&self) -> Self::Value { ... }
}
Expand description
An alternative ReadUntracked
trait that works with Option<Readable>
types.
Required Associated Types§
Required Methods§
Sourcefn try_read_untracked(&self) -> Option<Self::Value>
fn try_read_untracked(&self) -> Option<Self::Value>
Returns the guard, or None
if the signal has already been disposed.
Provided Methods§
Sourcefn read_untracked(&self) -> Self::Value
fn read_untracked(&self) -> Self::Value
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.