pub trait UdpFailPolicy: Sealed {
type ConsistencyGuarantee: Consistency;
// Required method
fn udp_fault() -> UdpFault;
}Expand description
A failure policy for UDP channels, determining how the transport handles
message loss. Because UDP provides no ordering guarantees, all policies
produce NoOrder output streams, and there is no fail_stop option
(UDP is connectionless, so there is no connection to fail).
Required Associated Types§
Sourcetype ConsistencyGuarantee: Consistency
type ConsistencyGuarantee: Consistency
The consistency guarantee this failure policy can preserve for replicated outputs
(see NetworkFor::ConsistencyGuarantee).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".