pub struct FrameFormat { /* private fields */ }Expand description
Frame format.
Implementations§
Source§impl FrameFormat
impl FrameFormat
Sourcepub fn new(
&mut self,
payload_length: u32,
frame_type: u8,
flags: u8,
stream_id: u32,
) -> FrameFormat
pub fn new( &mut self, payload_length: u32, frame_type: u8, flags: u8, stream_id: u32, ) -> FrameFormat
Create a new FrameFormat.
Sourcepub fn frame_type(&self) -> FrameType
pub fn frame_type(&self) -> FrameType
Retrieve the frame type.
Sourcepub fn payload_length(&self) -> u32
pub fn payload_length(&self) -> u32
Retrieve the payload length.
Trait Implementations§
Source§impl Clone for FrameFormat
impl Clone for FrameFormat
Source§fn clone(&self) -> FrameFormat
fn clone(&self) -> FrameFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameFormat
impl Debug for FrameFormat
Source§impl Display for FrameFormat
impl Display for FrameFormat
Source§impl PartialEq for FrameFormat
impl PartialEq for FrameFormat
impl Copy for FrameFormat
impl StructuralPartialEq for FrameFormat
Auto Trait Implementations§
impl Freeze for FrameFormat
impl RefUnwindSafe for FrameFormat
impl Send for FrameFormat
impl Sync for FrameFormat
impl Unpin for FrameFormat
impl UnwindSafe for FrameFormat
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