pub trait Provider {
// Required method
fn transmission_interest<Q: Query>(&self, query: &mut Q) -> Result;
// Provided methods
fn get_transmission_interest(&self) -> Interest { ... }
fn has_transmission_interest(&self) -> bool { ... }
fn can_transmit(&self, constraint: Constraint) -> bool { ... }
}Required Methods§
fn transmission_interest<Q: Query>(&self, query: &mut Q) -> Result
Provided Methods§
fn get_transmission_interest(&self) -> Interest
fn has_transmission_interest(&self) -> bool
fn can_transmit(&self, constraint: Constraint) -> bool
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.