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 Freeze for GeneratorBuilder
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