Struct libnghttp2_sys::nghttp2_priority_spec
source · [−]#[repr(C)]pub struct nghttp2_priority_spec {
pub stream_id: i32,
pub weight: i32,
pub exclusive: u8,
}
Expand description
@struct
The structure to specify stream dependency.
Fields
stream_id: i32
The stream ID of the stream to depend on. Specifying 0 makes stream not depend any other stream.
weight: i32
The weight of this dependency.
exclusive: u8
nonzero means exclusive dependency
Trait Implementations
sourceimpl Clone for nghttp2_priority_spec
impl Clone for nghttp2_priority_spec
sourcefn clone(&self) -> nghttp2_priority_spec
fn clone(&self) -> nghttp2_priority_spec
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for nghttp2_priority_spec
impl Debug for nghttp2_priority_spec
impl Copy for nghttp2_priority_spec
Auto Trait Implementations
impl RefUnwindSafe for nghttp2_priority_spec
impl Send for nghttp2_priority_spec
impl Sync for nghttp2_priority_spec
impl Unpin for nghttp2_priority_spec
impl UnwindSafe for nghttp2_priority_spec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more