pub struct CaptureShipper;Expand description
Spawns and owns the background shipping task.
Implementations§
Source§impl CaptureShipper
impl CaptureShipper
Sourcepub fn spawn(
cfg: &CaptureConfig,
token: Option<String>,
) -> Result<CaptureSink, String>
pub fn spawn( cfg: &CaptureConfig, token: Option<String>, ) -> Result<CaptureSink, String>
Build the HTTPS-capable client, spawn the drain-and-POST task, and return the producer sink.
token (from the environment) is sent as a bearer on each POST when present. Errors only if
the TLS/client cannot be built (boot-fatal at wiring).
Auto Trait Implementations§
impl Freeze for CaptureShipper
impl RefUnwindSafe for CaptureShipper
impl Send for CaptureShipper
impl Sync for CaptureShipper
impl Unpin for CaptureShipper
impl UnsafeUnpin for CaptureShipper
impl UnwindSafe for CaptureShipper
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