pub struct Frame {
pub frame_type: FrameType,
pub reserved: u8,
pub stream_id: StreamId,
pub len: u32,
}Expand description
Fields§
§frame_type: FrameType§reserved: u8§stream_id: StreamId§len: u32Implementations§
Source§impl Frame
impl Frame
Sourcepub fn new(frame_type: FrameType, stream_id: StreamId) -> Self
pub fn new(frame_type: FrameType, stream_id: StreamId) -> Self
Create a new frame with the given type and stream ID.
pub fn write_into(self, w: impl Write) -> Result<()>
Sourcepub fn is_end_headers(&self) -> bool
pub fn is_end_headers(&self) -> bool
Returns true if this frame has EndHeaders set
Sourcepub fn is_end_stream(&self) -> bool
pub fn is_end_stream(&self) -> bool
Returns true if this frame has EndStream set
Trait Implementations§
impl Copy for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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