Trait solicit::http::connection::SendFrame [−][src]
pub trait SendFrame { fn send_raw_frame(&mut self, frame: RawFrame) -> HttpResult<()>; fn send_frame<F: Frame>(&mut self, frame: F) -> HttpResult<()> { ... } }
A trait that should be implemented by types that can provide the functionality of sending HTTP/2 frames.
Required Methods
fn send_raw_frame(&mut self, frame: RawFrame) -> HttpResult<()>
Sends the given raw frame.
Provided Methods
fn send_frame<F: Frame>(&mut self, frame: F) -> HttpResult<()>
Sends the given concrete frame.
A default implementation based on the send_raw_frame
method is provided.
Implementors
impl<W> SendFrame for W where
W: Write,