pub enum EventDrop {
None,
Manual {
target_event_rate: f64,
alpha: f64,
},
Auto,
}
Expand description
Allow the encoder to randomly drop events before compressing, if the event rate is too high
Variants§
None
Don’t drop any events
Manual
Randomly drop events according to this user-provided event rate
Auto
TODO: Implement this. Query the actual network bandwidth accoring to some stream handle and drop events accordingly.
Trait Implementations§
impl Copy for EventDrop
impl StructuralPartialEq for EventDrop
Auto Trait Implementations§
impl Freeze for EventDrop
impl RefUnwindSafe for EventDrop
impl Send for EventDrop
impl Sync for EventDrop
impl Unpin for EventDrop
impl UnwindSafe for EventDrop
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