Struct h2::frame::priority::StreamDependency
source · pub struct StreamDependency {
dependency_id: StreamId,
weight: u8,
is_exclusive: bool,
}
Fields§
§dependency_id: StreamId
The ID of the stream dependency target
weight: u8
The weight for the stream. The value exposed (and set) here is always in
the range [0, 255], instead of [1, 256] (as defined in section 5.3.2.)
so that the value fits into a u8
.
is_exclusive: bool
True if the stream dependency is exclusive.
Implementations§
Trait Implementations§
source§impl Debug for StreamDependency
impl Debug for StreamDependency
source§impl PartialEq for StreamDependency
impl PartialEq for StreamDependency
source§fn eq(&self, other: &StreamDependency) -> bool
fn eq(&self, other: &StreamDependency) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StreamDependency
impl StructuralPartialEq for StreamDependency
Auto Trait Implementations§
impl Freeze for StreamDependency
impl RefUnwindSafe for StreamDependency
impl Send for StreamDependency
impl Sync for StreamDependency
impl Unpin for StreamDependency
impl UnwindSafe for StreamDependency
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<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.