pub trait HttpResponse {
// Required methods
fn is_success(&self) -> bool;
fn insert_header(
&mut self,
name: &'static str,
value: &[u8],
) -> Result<(), InvalidHeaderValue>;
}Required Methods§
fn is_success(&self) -> bool
fn insert_header( &mut self, name: &'static str, value: &[u8], ) -> Result<(), InvalidHeaderValue>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".