pub struct H2Frame<'a> { /* private fields */ }Implementations§
Source§impl<'a> H2Frame<'a>
impl<'a> H2Frame<'a>
pub fn none_frame() -> H2Frame<'a>
pub fn from_bytes(buffer: &'a Buffer) -> Result<H2Frame<'a>, HlsError>
pub fn write_to<W: WriteExt>(self, writer: &mut W)
pub fn to_bytes(self) -> Vec<u8> ⓘ
pub fn window_update() -> H2Frame<'a>
pub fn default_setting() -> H2Frame<'a>
pub fn new_header(body_len: usize, sid: u32) -> H2Frame<'a>
pub fn new_body(body: &'a [u8], sid: u32) -> Vec<H2Frame<'a>>
pub fn flag(&self) -> &FrameFlag
pub fn frame_type(&self) -> &FrameType
pub fn payload(&self) -> &[u8] ⓘ
pub fn set_payload(&mut self, payload: &'a [u8])
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn frame_id(&self) -> u32
pub fn set_frame_type(&mut self, frame_type: FrameType)
pub fn set_flag(&mut self, flag: FrameFlag)
pub fn set_settings(&mut self, settings: Vec<Setting>)
pub fn set_weight(&mut self, weight: u8)
pub fn add_flag(&mut self, flag: FrameFlag)
pub fn set_priority(&mut self, weight: u8)
pub fn set_stream_identifier(&mut self, stream_identifier: u32)
pub fn stream_identifier(&self) -> u32
pub fn is_end_frame(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for H2Frame<'a>
impl<'a> RefUnwindSafe for H2Frame<'a>
impl<'a> Send for H2Frame<'a>
impl<'a> Sync for H2Frame<'a>
impl<'a> Unpin for H2Frame<'a>
impl<'a> UnsafeUnpin for H2Frame<'a>
impl<'a> UnwindSafe for H2Frame<'a>
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