pub struct ThreadingReadModelParams {
pub session_id: String,
pub shape: InterestShape,
pub scope: ThreadingScope,
pub replay_limit: usize,
pub policy: ModulePolicy,
}Expand description
Parameters for one open threading graph read model.
Fields§
§session_id: StringCaller-stable id used to derive nmp.threading.graph.<session_id>.
shape: InterestShapeEvent scope to observe and replay.
scope: ThreadingScopeRouting scope for the observed projection.
replay_limit: usizeMaximum cached events replayed before live activation.
policy: ModulePolicyGrouping policy for the emitted block layout.
Implementations§
Source§impl ThreadingReadModelParams
impl ThreadingReadModelParams
pub fn global(session_id: impl Into<String>, shape: InterestShape) -> Self
Trait Implementations§
Source§impl Clone for ThreadingReadModelParams
impl Clone for ThreadingReadModelParams
Source§fn clone(&self) -> ThreadingReadModelParams
fn clone(&self) -> ThreadingReadModelParams
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 moreSource§impl Debug for ThreadingReadModelParams
impl Debug for ThreadingReadModelParams
impl Eq for ThreadingReadModelParams
Source§impl PartialEq for ThreadingReadModelParams
impl PartialEq for ThreadingReadModelParams
Source§fn eq(&self, other: &ThreadingReadModelParams) -> bool
fn eq(&self, other: &ThreadingReadModelParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ThreadingReadModelParams
Auto Trait Implementations§
impl Freeze for ThreadingReadModelParams
impl RefUnwindSafe for ThreadingReadModelParams
impl Send for ThreadingReadModelParams
impl Sync for ThreadingReadModelParams
impl Unpin for ThreadingReadModelParams
impl UnsafeUnpin for ThreadingReadModelParams
impl UnwindSafe for ThreadingReadModelParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.