pub struct SenderRuntime { /* private fields */ }Implementations§
Source§impl SenderRuntime
impl SenderRuntime
pub fn new( queue: Arc<Mutex<Queue>>, http: HttpSender, counters: Arc<Counters>, health_path: PathBuf, ) -> Self
Sourcepub async fn flush_one(&self) -> Result<Option<PathBuf>, SendError>
pub async fn flush_one(&self) -> Result<Option<PathBuf>, SendError>
Process one pending segment (oldest). Returns Ok(None) if queue empty.
Sourcepub fn backoff(attempt: u32) -> Duration
pub fn backoff(attempt: u32) -> Duration
Backoff schedule per spec §6: 2s, 8s, 30s, 120s, 300s (capped).
Sourcepub async fn drain_with_backoff(&self)
pub async fn drain_with_backoff(&self)
Drain-loop step. Caller owns the tick-or-shutdown select.
Auto Trait Implementations§
impl Freeze for SenderRuntime
impl !RefUnwindSafe for SenderRuntime
impl Send for SenderRuntime
impl Sync for SenderRuntime
impl Unpin for SenderRuntime
impl UnsafeUnpin for SenderRuntime
impl !UnwindSafe for SenderRuntime
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