pub struct TcpMockerOptions {
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: SocketAddr
Socket address on which the server will listen. Will be set to 127.0.0.1:0
by default.
net_timeout: Duration
Timeout for the server to wait for a message from the client.
rx_timeout: Duration
Timeout if no more instruction is available and Instruction::StopExchange
hasn’t been sent
reader_buffer_size: usize
Buffer size for TCP socket
Trait Implementations§
source§impl Clone for TcpMockerOptions
impl Clone for TcpMockerOptions
source§fn clone(&self) -> TcpMockerOptions
fn clone(&self) -> TcpMockerOptions
Returns a copy 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 TcpMockerOptions
impl Debug for TcpMockerOptions
Auto Trait Implementations§
impl Freeze for TcpMockerOptions
impl RefUnwindSafe for TcpMockerOptions
impl Send for TcpMockerOptions
impl Sync for TcpMockerOptions
impl Unpin for TcpMockerOptions
impl UnwindSafe for TcpMockerOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)