pub struct HpackIntegerBuilder<'a> { /* private fields */ }Expand description
Builds a canonical RFC 7541 section 5.1 integer in caller-owned storage.
Implementations§
Source§impl<'a> HpackIntegerBuilder<'a>
impl<'a> HpackIntegerBuilder<'a>
Sourcepub fn new(
destination: &'a mut [u8],
prefix_bits: u8,
high_bits: u8,
value: u64,
) -> Self
pub fn new( destination: &'a mut [u8], prefix_bits: u8, high_bits: u8, value: u64, ) -> Self
Creates a builder with the supplied prefix width, preserved high bits, and value.
Sourcepub fn build(self) -> Result<HpackInteger<'a>, HpackIntegerBuildError>
pub fn build(self) -> Result<HpackInteger<'a>, HpackIntegerBuildError>
Validates all inputs and capacity before writing a canonical integer representation.
Auto Trait Implementations§
impl<'a> !UnwindSafe for HpackIntegerBuilder<'a>
impl<'a> Freeze for HpackIntegerBuilder<'a>
impl<'a> RefUnwindSafe for HpackIntegerBuilder<'a>
impl<'a> Send for HpackIntegerBuilder<'a>
impl<'a> Sync for HpackIntegerBuilder<'a>
impl<'a> Unpin for HpackIntegerBuilder<'a>
impl<'a> UnsafeUnpin for HpackIntegerBuilder<'a>
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