pub struct ThreadingProjection<R: ParentResolver = EtagThreadResolver> { /* private fields */ }Expand description
Kind-blind observed projection over a scoped event stream.
Implementations§
Source§impl ThreadingProjection<EtagThreadResolver>
impl ThreadingProjection<EtagThreadResolver>
Sourcepub fn etag(policy: ModulePolicy) -> Self
pub fn etag(policy: ModulePolicy) -> Self
Construct the default e-tag threading projection.
Source§impl<R: ParentResolver + Clone> ThreadingProjection<R>
impl<R: ParentResolver + Clone> ThreadingProjection<R>
Sourcepub fn new(resolver: R, policy: ModulePolicy, capacity: usize) -> Self
pub fn new(resolver: R, policy: ModulePolicy, capacity: usize) -> Self
Construct a projection using a caller-supplied resolver.
Sourcepub fn snapshot(&self) -> ThreadingSnapshot
pub fn snapshot(&self) -> ThreadingSnapshot
Return a typed snapshot. D6: poisoned state degrades to empty.
Sourcepub fn typed_projection(&self, projection_key: &str) -> TypedProjectionData
pub fn typed_projection(&self, projection_key: &str) -> TypedProjectionData
Build typed projection data for projection_key.
Trait Implementations§
Source§impl<R: ParentResolver + Clone> ObservedProjectionSink for ThreadingProjection<R>
impl<R: ParentResolver + Clone> ObservedProjectionSink for ThreadingProjection<R>
Source§fn on_kernel_event(&self, event: &KernelEvent)
fn on_kernel_event(&self, event: &KernelEvent)
Called for replayed events and for future accepted events that match
the sink’s declared observed-projection shapes. Read more
Auto Trait Implementations§
impl<R = EtagThreadResolver> !Freeze for ThreadingProjection<R>
impl<R> RefUnwindSafe for ThreadingProjection<R>
impl<R> Send for ThreadingProjection<R>
impl<R> Sync for ThreadingProjection<R>
impl<R> Unpin for ThreadingProjection<R>where
R: Unpin,
impl<R> UnsafeUnpin for ThreadingProjection<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ThreadingProjection<R>
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