pub struct FrameHeader { /* private fields */ }
Expand description
A type to represent an rsocket frame header.
Implementations§
Source§impl FrameHeader
impl FrameHeader
Sourcepub const fn frame_type(&self) -> FrameType
pub const fn frame_type(&self) -> FrameType
Gets frame type.
Sourcepub const fn flags(&self) -> FrameFlags
pub const fn flags(&self) -> FrameFlags
Gets frame flags.
Sourcepub const fn has(&self, flag: FrameFlags) -> bool
pub const fn has(&self, flag: FrameFlags) -> bool
A shorthand for self.flags().contains(flag)
.
Trait Implementations§
Source§impl Clone for FrameHeader
impl Clone for FrameHeader
Source§fn clone(&self) -> FrameHeader
fn clone(&self) -> FrameHeader
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 FrameHeader
impl Debug for FrameHeader
Source§impl Decoder for FrameHeader
impl Decoder for FrameHeader
Source§impl Encoder for FrameHeader
impl Encoder for FrameHeader
Source§impl RawDecoder for FrameHeader
impl RawDecoder for FrameHeader
impl Copy for FrameHeader
Auto Trait Implementations§
impl Freeze for FrameHeader
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnwindSafe for FrameHeader
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