pub struct FixedHeader { /* private fields */ }
Implementations§
Source§impl FixedHeader
impl FixedHeader
pub fn new(type: PacketType, flags: PacketFlags, len: u32) -> Self
pub fn type(&self) -> PacketType
pub fn flags(&self) -> PacketFlags
pub fn len(&self) -> u32
Trait Implementations§
Source§impl Clone for FixedHeader
impl Clone for FixedHeader
Source§fn clone(&self) -> FixedHeader
fn clone(&self) -> FixedHeader
Returns a copy 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 FixedHeader
impl Debug for FixedHeader
Source§impl<'buf> Decodable<'buf> for FixedHeader
impl<'buf> Decodable<'buf> for FixedHeader
Source§impl Encodable for FixedHeader
impl Encodable for FixedHeader
Source§impl PartialEq for FixedHeader
impl PartialEq for FixedHeader
impl Copy for FixedHeader
impl Eq for FixedHeader
impl StructuralPartialEq for FixedHeader
Auto Trait Implementations§
impl Freeze for FixedHeader
impl RefUnwindSafe for FixedHeader
impl Send for FixedHeader
impl Sync for FixedHeader
impl Unpin for FixedHeader
impl UnwindSafe for FixedHeader
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