pub struct DownloadEventBatcher { /* private fields */ }Implementations§
Source§impl DownloadEventBatcher
impl DownloadEventBatcher
pub async fn run(self, cancel_token: CancellationToken)
pub fn new( batch_interval: Duration, output_tx: UnboundedSender<Vec<DownloadEvent>>, ) -> (Self, UnboundedSender<DownloadEvent>)
Auto Trait Implementations§
impl Freeze for DownloadEventBatcher
impl RefUnwindSafe for DownloadEventBatcher
impl Send for DownloadEventBatcher
impl Sync for DownloadEventBatcher
impl Unpin for DownloadEventBatcher
impl UnsafeUnpin for DownloadEventBatcher
impl UnwindSafe for DownloadEventBatcher
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