pub struct RunBuilderOptions { /* private fields */ }Expand description
Options for assembling a completed Run artifact.
This API is for completed evidence assembly (for example, import/conversion
paths), not live request instrumentation. Normal live instrumentation should
use crate::Tailtriage::builder.
When omitted:
- mode defaults to
CaptureMode::Light - capture limits default to
mode.core_defaults() - host and pid remain
None - run id uses the same core run-id generator as live capture
- timestamps are filled from one captured current unix-ms value
finalized_at_unix_ms is always Some(...) for RunBuilder output.
Implementations§
Source§impl RunBuilderOptions
impl RunBuilderOptions
Sourcepub fn new(service_name: impl Into<String>) -> Self
pub fn new(service_name: impl Into<String>) -> Self
Creates options with a required service name.
Sourcepub fn service_version(self, service_version: impl Into<String>) -> Self
pub fn service_version(self, service_version: impl Into<String>) -> Self
Sets optional service version metadata.
Sourcepub fn mode(self, mode: CaptureMode) -> Self
pub fn mode(self, mode: CaptureMode) -> Self
Sets capture mode.
Sourcepub fn capture_limits(self, capture_limits: CaptureLimits) -> Self
pub fn capture_limits(self, capture_limits: CaptureLimits) -> Self
Sets effective capture limits for this completed run artifact.
Sourcepub const fn strict_lifecycle(self, strict_lifecycle: bool) -> Self
pub const fn strict_lifecycle(self, strict_lifecycle: bool) -> Self
Sets strict lifecycle flag recorded in effective core config.
Sourcepub const fn started_at_unix_ms(self, started_at_unix_ms: u64) -> Self
pub const fn started_at_unix_ms(self, started_at_unix_ms: u64) -> Self
Sets start timestamp in unix milliseconds.
Sourcepub const fn finished_at_unix_ms(self, finished_at_unix_ms: u64) -> Self
pub const fn finished_at_unix_ms(self, finished_at_unix_ms: u64) -> Self
Sets finish timestamp in unix milliseconds.
Sourcepub const fn finalized_at_unix_ms(self, finalized_at_unix_ms: u64) -> Self
pub const fn finalized_at_unix_ms(self, finalized_at_unix_ms: u64) -> Self
Sets finalization timestamp in unix milliseconds.
Sourcepub const fn run_end_reason(self, run_end_reason: RunEndReason) -> Self
pub const fn run_end_reason(self, run_end_reason: RunEndReason) -> Self
Sets optional run-end reason metadata.
Trait Implementations§
Source§impl Clone for RunBuilderOptions
impl Clone for RunBuilderOptions
Source§fn clone(&self) -> RunBuilderOptions
fn clone(&self) -> RunBuilderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RunBuilderOptions
impl RefUnwindSafe for RunBuilderOptions
impl Send for RunBuilderOptions
impl Sync for RunBuilderOptions
impl Unpin for RunBuilderOptions
impl UnsafeUnpin for RunBuilderOptions
impl UnwindSafe for RunBuilderOptions
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