pub trait EmbeddedFailPolicy: Sealed {
type Ordering<O: Ordering>: Ordering;
type ConsistencyGuarantee: Consistency;
// Required method
fn embedded_fault() -> EmbeddedFault;
}Expand description
The failure policy an EMBEDDED channel declares: FailStop
(never_drops), Lossy
(may_drop), or LossyDelayedForever
(may_delay_forever).
Required Associated Types§
Sourcetype Ordering<O: Ordering>: Ordering
type Ordering<O: Ordering>: Ordering
The ordering of the received stream when the channel declares ordering O.
Sourcetype ConsistencyGuarantee: Consistency
type ConsistencyGuarantee: Consistency
The consistency guarantee this failure policy can preserve for replicated outputs
(see NetworkFor::ConsistencyGuarantee).
Required Methods§
Sourcefn embedded_fault() -> EmbeddedFault
fn embedded_fault() -> EmbeddedFault
Returns the EmbeddedFault variant for this failure policy.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".