pub struct StreamWindowLimit {
pub stream_id: u64,
pub limit: u64,
}
Expand description
stream window limit
Fields§
§stream_id: u64
stream identifier
limit: u64
new limit
Trait Implementations§
Source§impl Serialize for StreamWindowLimit
impl Serialize for StreamWindowLimit
Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
determine serialized length of frame
Source§fn read(buf: &[u8]) -> Result<(usize, Self), ()>
fn read(buf: &[u8]) -> Result<(usize, Self), ()>
read frame from buffer, returning frame and serialized length
Source§fn has_end_optimization() -> boolwhere
Self: Sized,
fn has_end_optimization() -> boolwhere
Self: Sized,
whether the frame has special “serialize to end” behavior
Source§impl SerializeToEnd for StreamWindowLimit
impl SerializeToEnd for StreamWindowLimit
Source§fn serialized_length_at_end(&self) -> usize
fn serialized_length_at_end(&self) -> usize
determine serialized length of frame at the end of the packet
Source§fn write_to_end(&self, buf: &mut [u8]) -> usize
fn write_to_end(&self, buf: &mut [u8]) -> usize
write last frame of packet to buffer, returning serialized length
Source§fn read_to_end(buf: &[u8]) -> Result<Self, ()>where
Self: Sized,
fn read_to_end(buf: &[u8]) -> Result<Self, ()>where
Self: Sized,
read last frame of packet from buffer, returning frame
Source§fn has_end_optimization() -> boolwhere
Self: Sized,
fn has_end_optimization() -> boolwhere
Self: Sized,
whether the frame has special “serialize to end” behavior
Auto Trait Implementations§
impl Freeze for StreamWindowLimit
impl RefUnwindSafe for StreamWindowLimit
impl Send for StreamWindowLimit
impl Sync for StreamWindowLimit
impl Unpin for StreamWindowLimit
impl UnwindSafe for StreamWindowLimit
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