pub struct FramePriority { /* private fields */ }Available on crate feature
http2 only.Expand description
The PRIORITY frame (type=0x2) specifies the sender-advised priority of a stream [Section 5.3]. It can be sent in any stream state, including idle or closed streams. [Section 5.3]: https://tools.ietf.org/html/rfc7540#section-5.3
Implementations§
Source§impl Priority
impl Priority
Sourcepub fn new(stream_id: StreamId, dependency: StreamDependency) -> Priority
pub fn new(stream_id: StreamId, dependency: StreamDependency) -> Priority
Create a new priority frame
Sourcepub fn load(head: Head, payload: &[u8]) -> Result<Priority, Error>
pub fn load(head: Head, payload: &[u8]) -> Result<Priority, Error>
Loads the priority frame but doesn’t actually do HPACK decoding.
pub fn head(&self) -> Head
pub fn stream_id(&self) -> StreamId
pub fn encode<B>(&self, dst: &mut B)where
B: BufMut,
Trait Implementations§
impl Copy for Priority
impl Eq for Priority
impl StructuralPartialEq for Priority
Auto Trait Implementations§
impl Freeze for Priority
impl RefUnwindSafe for Priority
impl Send for Priority
impl Sync for Priority
impl Unpin for Priority
impl UnwindSafe for Priority
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.