pub struct FrameStreamDependency { /* private fields */ }Available on crate feature
http2 only.Implementations§
Source§impl StreamDependency
impl StreamDependency
Sourcepub fn new(
dependency_id: StreamId,
weight: u8,
is_exclusive: bool,
) -> StreamDependency
pub fn new( dependency_id: StreamId, weight: u8, is_exclusive: bool, ) -> StreamDependency
Create a new stream dependency
Sourcepub fn load(src: &[u8]) -> Result<StreamDependency, Error>
pub fn load(src: &[u8]) -> Result<StreamDependency, Error>
Loads the stream dependency from a buffer
pub fn dependency_id(&self) -> StreamId
pub fn weight(&self) -> u8
pub fn is_exclusive(&self) -> bool
pub fn encode<T>(&self, dst: &mut T)where
T: BufMut,
Trait Implementations§
Source§impl Clone for StreamDependency
impl Clone for StreamDependency
Source§fn clone(&self) -> StreamDependency
fn clone(&self) -> StreamDependency
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamDependency
impl Debug for StreamDependency
Source§impl PartialEq for StreamDependency
impl PartialEq for StreamDependency
impl Copy for StreamDependency
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<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.