pub trait ServiceObjTrait {
type Output;
// Required method
fn service(&mut self) -> &mut dyn Service<Output = Self::Output>;
}Expand description
A trait implemented by both ServiceObj and ServiceObjLocal that
allows code to be generic over thread-safety.
Code that uses ServiceObj will require Send bounds but will be
multithreaded-capable, while code that uses ServiceObjLocal will
allow non-Send types but will be restricted to singlethreaded
executors.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".