Struct interceptor::nack::generator::GeneratorBuilder
source · pub struct GeneratorBuilder { /* private fields */ }
Expand description
GeneratorBuilder can be used to configure Generator Interceptor
Implementations§
source§impl GeneratorBuilder
impl GeneratorBuilder
sourcepub fn with_log2_size_minus_6(self, log2_size_minus_6: u8) -> GeneratorBuilder
pub fn with_log2_size_minus_6(self, log2_size_minus_6: u8) -> GeneratorBuilder
with_size sets the size of the interceptor. Size must be one of: 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768
sourcepub fn with_skip_last_n(self, skip_last_n: u16) -> GeneratorBuilder
pub fn with_skip_last_n(self, skip_last_n: u16) -> GeneratorBuilder
with_skip_last_n sets the number of packets (n-1 packets before the last received packets) to ignore when generating nack requests.
sourcepub fn with_interval(self, interval: Duration) -> GeneratorBuilder
pub fn with_interval(self, interval: Duration) -> GeneratorBuilder
with_interval sets the nack send interval for the interceptor
Trait Implementations§
source§impl Default for GeneratorBuilder
impl Default for GeneratorBuilder
source§fn default() -> GeneratorBuilder
fn default() -> GeneratorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for GeneratorBuilder
impl Send for GeneratorBuilder
impl Sync for GeneratorBuilder
impl Unpin for GeneratorBuilder
impl UnwindSafe for GeneratorBuilder
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