pub struct ContextualEvidence<T, Context> {
pub inner: T,
/* private fields */
}Expand description
Evidence tagged with its collection context.
Context is one of OnlineMonitoringContext or OfflineAnalysisContext
(or a custom context type). The tag is zero-cost — PhantomData only.
An ContextualEvidence<T, OnlineMonitoringContext> is a different type from
ContextualEvidence<T, OfflineAnalysisContext>, so a function that demands
offline evidence cannot accidentally receive an online window.
§Type aliases
See OnlineEvidence and OfflineEvidence for the common case.
This is structure only. See crate::streaming. Graduate to wasm4pm
when context-dependent processing must execute.
Fields§
§inner: TThe inner evidence value.
Implementations§
Source§impl<T> ContextualEvidence<T, OfflineAnalysisContext>
impl<T> ContextualEvidence<T, OfflineAnalysisContext>
Source§impl<T> ContextualEvidence<T, OnlineMonitoringContext>
impl<T> ContextualEvidence<T, OnlineMonitoringContext>
Auto Trait Implementations§
impl<T, Context> Freeze for ContextualEvidence<T, Context>where
T: Freeze,
impl<T, Context> RefUnwindSafe for ContextualEvidence<T, Context>where
T: RefUnwindSafe,
Context: RefUnwindSafe,
impl<T, Context> Send for ContextualEvidence<T, Context>
impl<T, Context> Sync for ContextualEvidence<T, Context>
impl<T, Context> Unpin for ContextualEvidence<T, Context>
impl<T, Context> UnsafeUnpin for ContextualEvidence<T, Context>where
T: UnsafeUnpin,
impl<T, Context> UnwindSafe for ContextualEvidence<T, Context>where
T: UnwindSafe,
Context: UnwindSafe,
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