Trait salvo::prelude::Piece

source ·
pub trait Piece {
    fn render(self, res: &mut Response);
}
Expand description

Piece is used to write data to Response.

Piece is simpler than Writer ant it implements Writer.

Required Methods§

Render data to Response.

Implementations on Foreign Types§

Implementors§