pub struct FrameParams {
pub version: u8,
pub flags: u8,
pub stream: i16,
}
Expand description
Parts of the frame header which are not determined by the request/response type.
Fields§
§version: u8
The version of the frame protocol. Currently, only version 4 is supported. The most significant bit (0x80) is treated specially: it indicates whether the frame is from the client or server.
flags: u8
Flags for the frame, indicating features like compression, tracing, etc.
stream: i16
The stream ID for this frame, which allows matching requests and responses in a multiplexed connection.
Trait Implementations§
Source§impl Clone for FrameParams
impl Clone for FrameParams
Source§fn clone(&self) -> FrameParams
fn clone(&self) -> FrameParams
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 FrameParams
impl Debug for FrameParams
Source§impl Default for FrameParams
impl Default for FrameParams
Source§impl PartialEq for FrameParams
impl PartialEq for FrameParams
impl Copy for FrameParams
impl Eq for FrameParams
impl StructuralPartialEq for FrameParams
Auto Trait Implementations§
impl Freeze for FrameParams
impl RefUnwindSafe for FrameParams
impl Send for FrameParams
impl Sync for FrameParams
impl Unpin for FrameParams
impl UnwindSafe for FrameParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more