pub trait ExplicitServerWrite {
// Required method
async fn explicit_write(self, res: &mut Response);
}Expand description
Trait that utilizes only mutable reference to Response and makes no need for Request/Depot.
Required Methods§
Sourceasync fn explicit_write(self, res: &mut Response)
async fn explicit_write(self, res: &mut Response)
Write an actual response in a Response object.
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.