[][src]Trait solicit::http::connection::SendFrame

pub trait SendFrame {
    fn send_frame<F: FrameIR>(&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_frame<F: FrameIR>(&mut self, frame: F) -> HttpResult<()>

Queue the given frame for immediate sending to the peer. It is the responsibility of each individual SendFrame implementation to correctly serialize the given FrameIR into an appropriate buffer and make sure that the frame is subsequently eventually pushed to the peer.

Loading content...

Implementors

impl<T> SendFrame for T where
    T: TransportStream
[src]

Loading content...