Skip to main content

Witness

Trait Witness 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl<W: Witness + ?Sized> Witness for Arc<W>

Source§

fn observe(&self, observation: Observation)

Implementors§