Struct h2::frame::window_update::WindowUpdate
source · pub struct WindowUpdate {
stream_id: StreamId,
size_increment: u32,
}
Fields§
§stream_id: StreamId
§size_increment: u32
Implementations§
source§impl WindowUpdate
impl WindowUpdate
pub fn new(stream_id: StreamId, size_increment: u32) -> WindowUpdate
pub fn stream_id(&self) -> StreamId
pub fn size_increment(&self) -> u32
sourcepub fn load(head: Head, payload: &[u8]) -> Result<WindowUpdate, Error>
pub fn load(head: Head, payload: &[u8]) -> Result<WindowUpdate, Error>
Builds a WindowUpdate
frame from a raw frame.
pub fn encode<B: BufMut>(&self, dst: &mut B)
Trait Implementations§
source§impl Clone for WindowUpdate
impl Clone for WindowUpdate
source§fn clone(&self) -> WindowUpdate
fn clone(&self) -> WindowUpdate
Returns a copy 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 WindowUpdate
impl Debug for WindowUpdate
source§impl<B> From<WindowUpdate> for Frame<B>
impl<B> From<WindowUpdate> for Frame<B>
source§fn from(src: WindowUpdate) -> Self
fn from(src: WindowUpdate) -> Self
Converts to this type from the input type.
source§impl PartialEq for WindowUpdate
impl PartialEq for WindowUpdate
impl Copy for WindowUpdate
impl Eq for WindowUpdate
impl StructuralPartialEq for WindowUpdate
Auto Trait Implementations§
impl Freeze for WindowUpdate
impl RefUnwindSafe for WindowUpdate
impl Send for WindowUpdate
impl Sync for WindowUpdate
impl Unpin for WindowUpdate
impl UnwindSafe for WindowUpdate
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.