pub struct MockConfig {
pub connected: bool,
pub latency_ms: u64,
pub failure_rate: f64,
pub failure_status: u16,
pub failure_message: String,
}Expand description
Configuration for mock transport behavior.
Fields§
§connected: boolSimulate connection state.
latency_ms: u64Simulate latency (milliseconds).
failure_rate: f64Failure rate (0.0 to 1.0).
failure_status: u16Status code to return on failure.
failure_message: StringError message on failure.
Trait Implementations§
Source§impl Clone for MockConfig
impl Clone for MockConfig
Source§fn clone(&self) -> MockConfig
fn clone(&self) -> MockConfig
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 moreSource§impl Debug for MockConfig
impl Debug for MockConfig
Auto Trait Implementations§
impl Freeze for MockConfig
impl RefUnwindSafe for MockConfig
impl Send for MockConfig
impl Sync for MockConfig
impl Unpin for MockConfig
impl UnwindSafe for MockConfig
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