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.
Implementors§
impl ExplicitServerWrite for ServerError
Available on crate feature
salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.impl ExplicitServerWrite for Html
Available on crate feature
salvo and neither WebAssembly nor WebAssembly only.impl ExplicitServerWrite for OK
Available on crate feature
salvo and neither WebAssembly nor WebAssembly only.impl ExplicitServerWrite for Plain
Available on crate feature
salvo and neither WebAssembly nor WebAssembly only.impl<T: Serialize + Send> ExplicitServerWrite for Json<T>
Available on crate feature
salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.impl<T: Serialize + Send> ExplicitServerWrite for MsgPack<T>
Available on crate feature
salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.