pub struct TcpMocker {
    pub socket_addr: SocketAddr,
    pub net_timeout: Duration,
    pub rx_timeout: Duration,
    pub reader_buffer_size: usize,
}Expand description
Options for the TCP server mocker
Fields§
§socket_addr: SocketAddrSocket address on which the server will listen. Will be set to 127.0.0.1:0 by default.
net_timeout: DurationTimeout for the server to wait for a message from the client.
rx_timeout: DurationTimeout if no more instruction is available and Instruction::StopExchange hasn’t been sent
reader_buffer_size: usizeBuffer size for TCP socket
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpMocker
impl RefUnwindSafe for TcpMocker
impl Send for TcpMocker
impl Sync for TcpMocker
impl Unpin for TcpMocker
impl UnwindSafe for TcpMocker
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