pub struct Http2Priority { /* private fields */ }Expand description
The priority section carried by a HEADERS frame.
Implementations§
Source§impl Http2Priority
impl Http2Priority
Sourcepub const fn new(raw_dependency: u32, weight: u8) -> Self
pub const fn new(raw_dependency: u32, weight: u8) -> Self
Creates a priority section from its raw dependency field and encoded weight.
Sourcepub const fn is_exclusive(self) -> bool
pub const fn is_exclusive(self) -> bool
Returns whether the exclusive dependency bit is set.
Sourcepub const fn raw_dependency(self) -> u32
pub const fn raw_dependency(self) -> u32
Returns the raw dependency field, including the exclusive bit.
Sourcepub const fn dependency(self) -> u32
pub const fn dependency(self) -> u32
Returns the 31-bit stream dependency value.
Trait Implementations§
Source§impl Clone for Http2Priority
impl Clone for Http2Priority
impl Copy for Http2Priority
Source§impl Debug for Http2Priority
impl Debug for Http2Priority
impl Eq for Http2Priority
Source§impl PartialEq for Http2Priority
impl PartialEq for Http2Priority
impl StructuralPartialEq for Http2Priority
Auto Trait Implementations§
impl Freeze for Http2Priority
impl RefUnwindSafe for Http2Priority
impl Send for Http2Priority
impl Sync for Http2Priority
impl Unpin for Http2Priority
impl UnsafeUnpin for Http2Priority
impl UnwindSafe for Http2Priority
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