Skip to main content

SatisfiedBy

Trait SatisfiedBy 

Source
pub trait SatisfiedBy<O, R>: EmbeddedChannel { }
Expand description

A channel whose guarantees promises of ordering O and retries R meet: each guarantee the channel needs is weaker than (or the same as) the one promised. It is what EmbeddedInputChannel::new requires, and lets a reusable transport state once what it provides: fn source<C: SatisfiedBy<TotalOrder, ExactlyOnce>>() serves every channel that needs at most that.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<K, O, R> SatisfiedBy<O, R> for K
where K: EmbeddedChannel, K::Ordering: OrderPromisedBy<O, K>, K::Retries: RetriesPromisedBy<R, K>,