pub struct ValueOverlayReducer<T>(/* private fields */);Expand description
Marker reducer type for ValueOverlay<T>.
This reducer carries no state; it exists only to bind a concrete
type parameter T to the CommReducer implementation below.
Reduction is purely functional and uses right-wins merge semantics
defined in rle::merge_value_runs.
Implementations§
Source§impl<T> ValueOverlayReducer<T>
impl<T> ValueOverlayReducer<T>
Sourcepub fn new() -> ValueOverlayReducer<T>
pub fn new() -> ValueOverlayReducer<T>
Create a reducer for sparse ValueOverlay<T> updates.
Trait Implementations§
Source§impl<T> CommReducer for ValueOverlayReducer<T>
Reducer for sparse overlay updates.
impl<T> CommReducer for ValueOverlayReducer<T>
Reducer for sparse overlay updates.
Combines two ValueOverlay<T> updates using right-wins
semantics: overlapping runs from right overwrite those in
left. The merged runs are then normalized and validated via
ValueOverlay::try_from_runs.
Used by the corresponding Accumulator to perform distributed
reduction of incremental mesh updates.
Source§type Update = ValueOverlay<T>
type Update = ValueOverlay<T>
The type of updates to be reduced.
Source§fn reduce(
&self,
left: <ValueOverlayReducer<T> as CommReducer>::Update,
right: <ValueOverlayReducer<T> as CommReducer>::Update,
) -> Result<<ValueOverlayReducer<T> as CommReducer>::Update, Error>
fn reduce( &self, left: <ValueOverlayReducer<T> as CommReducer>::Update, right: <ValueOverlayReducer<T> as CommReducer>::Update, ) -> Result<<ValueOverlayReducer<T> as CommReducer>::Update, Error>
Reduce 2 updates into a single update.
Source§impl<T> Named for ValueOverlayReducer<T>where
T: Named,
impl<T> Named for ValueOverlayReducer<T>where
T: Named,
Source§fn typename() -> &'static str
fn typename() -> &'static str
The globally unique type name for the type.
This should typically be the fully qualified Rust name of the type.
Source§fn typehash() -> u64
fn typehash() -> u64
A globally unique hash for this type.
TODO: actually enforce perfect hashing
Source§fn typeid() -> TypeId
fn typeid() -> TypeId
The TypeId for this type. TypeIds are unique only within a binary,
and should not be used for global identification.
Auto Trait Implementations§
impl<T> Freeze for ValueOverlayReducer<T>
impl<T> RefUnwindSafe for ValueOverlayReducer<T>where
T: RefUnwindSafe,
impl<T> Send for ValueOverlayReducer<T>where
T: Send,
impl<T> Sync for ValueOverlayReducer<T>where
T: Sync,
impl<T> Unpin for ValueOverlayReducer<T>where
T: Unpin,
impl<T> UnsafeUnpin for ValueOverlayReducer<T>
impl<T> UnwindSafe for ValueOverlayReducer<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
Source§impl<R, T> ErasedCommReducer for R
impl<R, T> ErasedCommReducer for R
§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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].