pub trait HttpControl {
const TYPE: HttpType;
// Required method
fn attributes(&self) -> &Attributes;
// Provided methods
fn end_of_stream(&self) -> bool { ... }
fn resume(&self) { ... }
fn reset(&self) { ... }
fn send_http_response(
&self,
status_code: u32,
headers: &[(&str, &[u8])],
body: Option<&[u8]>,
) -> Result<(), Status> { ... }
fn done(&self) { ... }
}
Expand description
Defines control functions for http data
Required Associated Constants§
Required Methods§
Sourcefn attributes(&self) -> &Attributes
fn attributes(&self) -> &Attributes
Retrieve attributes for the http data
Provided Methods§
Sourcefn end_of_stream(&self) -> bool
fn end_of_stream(&self) -> bool
If true
, this is the last block
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.