pub struct Driver { /* private fields */ }Implementations§
Source§impl Driver
impl Driver
Sourcepub async fn run(self)
pub async fn run(self)
Runs the driver loop. tokio::select! pulls whichever channel
has a batch ready next; terminates when both channels are closed.
Sourcepub fn drain_sync(self)
pub fn drain_sync(self)
Synchronously drain everything currently available on both
channels. Used by tests after cache.flush_pending(). Events
are drained first so that any event whose parent is in this
drain’s span batch lands in the side buffer in time.
Auto Trait Implementations§
impl Freeze for Driver
impl !RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnsafeUnpin for Driver
impl !UnwindSafe for Driver
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