pub struct FrameReader {
pub frame_type: FrameType,
pub flags: FrameFlags,
pub stream_id: u32,
pub payload_len: u32,
pub payload: Vec<u8>,
}Fields§
§frame_type: FrameType§flags: FrameFlags§stream_id: u32§payload_len: u32§payload: Vec<u8>Implementations§
Source§impl FrameReader
impl FrameReader
pub async fn read_frame(buf: &[u8]) -> Result<Self, Box<dyn Error>>
pub async fn parse_settings_payload(&self) -> Vec<Setting>
Auto Trait Implementations§
impl Freeze for FrameReader
impl RefUnwindSafe for FrameReader
impl Send for FrameReader
impl Sync for FrameReader
impl Unpin for FrameReader
impl UnwindSafe for FrameReader
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