pub trait Witness:
WasmCompatSend
+ WasmCompatSync
+ 'static {
// Required method
fn observe(&self, observation: Observation);
}Expand description
Where observations go: the seam a driver and a host emit through. A
witness is shared, so it takes &self; it must never block the caller.
Required Methods§
Sourcefn observe(&self, observation: Observation)
fn observe(&self, observation: Observation)
One fact. The sink assigns its sequence.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".