pub struct Http2StreamId(/* private fields */);Expand description
An HTTP/2 stream identifier preserving its reserved high bit.
Implementations§
Source§impl Http2StreamId
impl Http2StreamId
Sourcepub const fn new(raw: u32) -> Self
pub const fn new(raw: u32) -> Self
Creates an identifier from its raw encoded field, including the reserved bit.
Sourcepub const fn from_value(value: u32) -> Result<Self, Http2StreamIdError>
pub const fn from_value(value: u32) -> Result<Self, Http2StreamIdError>
Creates an outgoing identifier after rejecting a set reserved bit.
Sourcepub const fn raw(self) -> u32
pub const fn raw(self) -> u32
Returns the raw encoded stream identifier, including its reserved bit.
Sourcepub const fn has_reserved_bit(self) -> bool
pub const fn has_reserved_bit(self) -> bool
Returns whether the raw encoded identifier has its reserved bit set.
Trait Implementations§
Source§impl Clone for Http2StreamId
impl Clone for Http2StreamId
impl Copy for Http2StreamId
Source§impl Debug for Http2StreamId
impl Debug for Http2StreamId
impl Eq for Http2StreamId
Source§impl Hash for Http2StreamId
impl Hash for Http2StreamId
Source§impl PartialEq for Http2StreamId
impl PartialEq for Http2StreamId
impl StructuralPartialEq for Http2StreamId
Auto Trait Implementations§
impl Freeze for Http2StreamId
impl RefUnwindSafe for Http2StreamId
impl Send for Http2StreamId
impl Sync for Http2StreamId
impl Unpin for Http2StreamId
impl UnsafeUnpin for Http2StreamId
impl UnwindSafe for Http2StreamId
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