Trait httpbis::solicit::frame::FrameIR
[−]
[src]
pub trait FrameIR { fn serialize_into<B: FrameBuilder>(self, builder: &mut B) -> Result<()>; fn serialize_into_vec(self) -> Vec<u8>
where
Self: Sized, { ... } }
A trait that types that are an intermediate representation of HTTP/2 frames should implement. It allows us to generically serialize any intermediate representation into an on-the-wire representation.
Required Methods
fn serialize_into<B: FrameBuilder>(self, builder: &mut B) -> Result<()>
Write out the on-the-wire representation of the frame into the given FrameBuilder
.
Provided Methods
fn serialize_into_vec(self) -> Vec<u8> where
Self: Sized,
Self: Sized,
Implementors
impl FrameIR for DataFrame
impl FrameIR for HeadersFrame
impl FrameIR for RstStreamFrame
impl FrameIR for SettingsFrame
impl FrameIR for GoawayFrame
impl<'a> FrameIR for PingFrame
impl FrameIR for WindowUpdateFrame
impl FrameIR for RawFrame