Struct s2n_quic_core::havoc::AndThen
source · [−]Fields
a: Ab: BTrait Implementations
sourceimpl<A: Strategy, B: Strategy> Strategy for AndThen<A, B>
impl<A: Strategy, B: Strategy> Strategy for AndThen<A, B>
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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<A: Copy + Strategy, B: Copy + Strategy> Copy for AndThen<A, B>
Auto Trait Implementations
impl<A, B> RefUnwindSafe for AndThen<A, B> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for AndThen<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for AndThen<A, B> where
A: Sync,
B: Sync,
impl<A, B> Unpin for AndThen<A, B> where
A: Unpin,
B: Unpin,
impl<A, B> UnwindSafe for AndThen<A, B> where
A: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more