pub struct TcpFaultConfig {
pub message: FaultConfig,
pub connection_refused: (u32, u32),
pub connection_reset: (u32, u32),
pub connection_timeout: (u32, u32),
}Expand description
TCP-level fault configuration - extends FaultConfig with connection-oriented faults.
Applied independently from the message-level faults in FaultConfig. This allows modeling a
reliable TCP connection with unreliable message delivery, or a flaky TCP connection that resets
mid-session.
Fields§
§message: FaultConfigUnderlying message-level fault config.
connection_refused: (u32, u32)Probability that a new connection attempt is refused. Models a gateway that is at capacity or unreachable.
connection_reset: (u32, u32)Probability that an established connection is reset mid-session. Models ignition off, network fault, or gateway restart.
connection_timeout: (u32, u32)Probability that a connection attempt times out without response.
Implementations§
Trait Implementations§
Source§impl Clone for TcpFaultConfig
impl Clone for TcpFaultConfig
Source§fn clone(&self) -> TcpFaultConfig
fn clone(&self) -> TcpFaultConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TcpFaultConfig
impl RefUnwindSafe for TcpFaultConfig
impl Send for TcpFaultConfig
impl Sync for TcpFaultConfig
impl Unpin for TcpFaultConfig
impl UnsafeUnpin for TcpFaultConfig
impl UnwindSafe for TcpFaultConfig
Blanket Implementations§
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