Trait fuchsia_inspect::Property
source · pub trait Property<'t>: InspectTypeInternal {
type Type;
// Required method
fn set(&self, value: Self::Type);
// Provided method
fn atomic_update<R, F: FnOnce(&Self) -> R>(&self, update_fn: F) -> R { ... }
}
Expand description
Trait implemented by properties.
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn atomic_update<R, F: FnOnce(&Self) -> R>(&self, update_fn: F) -> R
fn atomic_update<R, F: FnOnce(&Self) -> R>(&self, update_fn: F) -> R
Takes a function to execute as under a single lock of the Inspect VMO. This function
receives a reference to the Property
on which it is called.
Object Safety§
This trait is not object safe.