pub enum Frame<T = Binary> {
Data(Data<T>),
Headers(Headers),
Priority(Priority),
PushPromise(PushPromise),
Settings(Settings),
Ping(Ping),
GoAway(GoAway),
WindowUpdate(WindowUpdate),
Reset(Reset),
}Variants§
Data(Data<T>)
Headers(Headers)
Priority(Priority)
PushPromise(PushPromise)
Settings(Settings)
Ping(Ping)
GoAway(GoAway)
WindowUpdate(WindowUpdate)
Reset(Reset)
Implementations§
source§impl Frame<Binary>
impl Frame<Binary>
pub fn trim_padding<B: Buf>(header: &FrameHeader, buf: &mut B) -> WebResult<()>
pub fn display_name(&self) -> String
pub fn stream_id(&self) -> StreamIdentifier
pub fn flags(&self) -> Flag
pub fn is_header(&self) -> bool
pub fn is_data(&self) -> bool
pub fn is_end_headers(&self) -> bool
pub fn is_end_stream(&self) -> bool
pub fn encode<B: Buf + BufMut>( self, buf: &mut B, encoder: &mut Encoder ) -> WebResult<usize>
source§impl<T: Buf> Frame<T>
impl<T: Buf> Frame<T>
pub fn parse( header: FrameHeader, buf: T, decoder: &mut Decoder, max_header_list_size: usize ) -> WebResult<Frame<T>>
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
How many bytes this Frame will use in a buffer when encoding.
pub fn no_serialize_header(&self) -> bool
Trait Implementations§
source§impl<T> From<PushPromise> for Frame<T>
impl<T> From<PushPromise> for Frame<T>
source§fn from(src: PushPromise) -> Self
fn from(src: PushPromise) -> Self
Converts to this type from the input type.
source§impl<B> From<WindowUpdate> for Frame<B>
impl<B> From<WindowUpdate> for Frame<B>
source§fn from(src: WindowUpdate) -> Self
fn from(src: WindowUpdate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T = Binary> !RefUnwindSafe for Frame<T>
impl<T> Send for Frame<T>where
T: Send,
impl<T> Sync for Frame<T>where
T: Sync,
impl<T> Unpin for Frame<T>where
T: Unpin,
impl<T = Binary> !UnwindSafe for Frame<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more