Struct s2n_quic_core::havoc::VarInt
source · pub struct VarInt { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Strategy for VarInt
impl Strategy for VarInt
source§fn havoc<R: Random>(&mut self, rand: &mut R, buffer: &mut EncoderBuffer<'_>)
fn havoc<R: Random>(&mut self, rand: &mut R, buffer: &mut EncoderBuffer<'_>)
Applies the havoc strategy to the supplied buffer
source§fn havoc_slice<R: Random>(&mut self, rand: &mut R, buffer: &mut [u8]) -> usize
fn havoc_slice<R: Random>(&mut self, rand: &mut R, buffer: &mut [u8]) -> usize
Applies the havoc strategy to the supplied buffer slice and returns the new buffer length
source§fn havoc_u16<R: Random>(&mut self, rand: &mut R, input: u16) -> u16
fn havoc_u16<R: Random>(&mut self, rand: &mut R, input: u16) -> u16
Applies the havoc strategy to the given
u16
value and returns the new u16
resultsource§fn alternate<B: Strategy>(
self,
b: B,
period: Range<usize>
) -> Alternate<Self, B>
fn alternate<B: Strategy>( self, b: B, period: Range<usize> ) -> Alternate<Self, B>
Alternate between two strategies with the supplied
period
source§fn toggle(self, period: Range<usize>) -> Toggle<Self>
fn toggle(self, period: Range<usize>) -> Toggle<Self>
Toggle the strategy on and off for the supplied
period
source§fn while_has_capacity(self) -> WhileHasCapacity<Self>
fn while_has_capacity(self) -> WhileHasCapacity<Self>
Repeatedly applies the strategy as long as the buffer has capacity
impl Copy for VarInt
Auto Trait Implementations§
impl Freeze for VarInt
impl RefUnwindSafe for VarInt
impl Send for VarInt
impl Sync for VarInt
impl Unpin for VarInt
impl UnwindSafe for VarInt
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