ExplicitServerWrite

Trait ExplicitServerWrite 

Source
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§

Source

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§

Source§

impl ExplicitServerWrite for ServerError

Available on crate feature salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.
Source§

impl ExplicitServerWrite for Html

Available on crate feature salvo and neither WebAssembly nor WebAssembly only.
Source§

impl ExplicitServerWrite for OK

Available on crate feature salvo and neither WebAssembly nor WebAssembly only.
Source§

impl ExplicitServerWrite for Plain

Available on crate feature salvo and neither WebAssembly nor WebAssembly only.
Source§

impl<T: Serialize + Send> ExplicitServerWrite for Json<T>

Available on crate feature salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.
Source§

impl<T: Serialize + Send> ExplicitServerWrite for MsgPack<T>

Available on crate feature salvo and crate feature mresult and neither WebAssembly nor WebAssembly only.