pub trait FormatDiscovery {
type Format;
// Required methods
fn started(&self);
fn available(&self, formats: Vec<Self::Format>);
fn failed(&self, message: String);
}Expand description
Defines the first-order observation stream of format discovery.
An observation is a method, so the reified stream is generated from this vocabulary rather than written out. An interpreter states what each observation means and never restates the shape.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".