Struct ProfileExport
pub struct ProfileExport { /* private fields */ }inspect and std and ua only.Expand description
A pinned selection grouped by observed User-Agent. Only capture handles are sorted and retained; each call constructs one merged profile from stored heads.
Implementations§
§impl ProfileExport
impl ProfileExport
pub fn new( store: &CaptureStore, requests: &BTreeSet<u64>, connections: &BTreeSet<u64>, ) -> ProfileExport
pub fn is_empty(&self) -> bool
pub fn skipped_http3_exchanges(&self) -> u64
pub fn skipped_http3_exchanges(&self) -> u64
HTTP/3 exchanges whose QUIC or HTTP/3 evidence was incomplete, such as a connection served without QUIC observation, and so exported nothing.
pub fn skipped_tls_connections(&self) -> u64
Available on crate feature tls only.
pub fn skipped_tls_connections(&self) -> u64
tls only.Connections whose TLS evidence was incomplete, such as accepted ECH without its outer hello, and so exported only their request evidence.
pub async fn next_profile(
&mut self,
) -> Result<Option<UserAgentProfileInput>, Box<dyn Error + Send + Sync>>
pub async fn next_profile( &mut self, ) -> Result<Option<UserAgentProfileInput>, Box<dyn Error + Send + Sync>>
Consume one group without retaining headers from other user agents.
Incomplete observations are returned as typed input; callers can validate
them with UserAgentProfileInput::try_into_profile before publishing.
Cancellation leaves the selection unchanged, so the group can be retried.
§impl ProfileExport
impl ProfileExport
pub async fn next_evidence(
&mut self,
current_day: u32,
horizon: u32,
sampler_seed: [u8; 32],
limits: ProfileAnalysisLimits,
) -> Result<Option<ProfileArchiveEntry>, Box<dyn Error + Send + Sync>>
pub async fn next_evidence( &mut self, current_day: u32, horizon: u32, sampler_seed: [u8; 32], limits: ProfileAnalysisLimits, ) -> Result<Option<ProfileArchiveEntry>, Box<dyn Error + Send + Sync>>
Export every selected observation through the same bounded counting and analysis model as fp. Connection facts belong to the first selected exchange on that connection; request facts count independently. Expired heads do not contribute. Cancellation leaves the pinned group unchanged.
Auto Trait Implementations§
impl !RefUnwindSafe for ProfileExport
impl !UnwindSafe for ProfileExport
impl Forget for ProfileExport
impl Freeze for ProfileExportwhere
*const u8 is !null: Freeze,
PhantomData<ExchangeCapture>: Freeze,
PhantomData<(u64, u64)>: Freeze,
impl Move for ProfileExport
impl Send for ProfileExport
impl Sync for ProfileExport
impl Unpin for ProfileExport
impl UnsafeUnpin for ProfileExportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<ExchangeCapture>: UnsafeUnpin,
PhantomData<(u64, u64)>: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more