Skip to main content

EmbeddedFailPolicy

Trait EmbeddedFailPolicy 

Source
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§

Source

type Ordering<O: Ordering>: Ordering

The ordering of the received stream when the channel declares ordering O.

Source

type ConsistencyGuarantee: Consistency

The consistency guarantee this failure policy can preserve for replicated outputs (see NetworkFor::ConsistencyGuarantee).

Required Methods§

Source

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".

Implementors§