pub struct UdpMockerOptions {
pub socket_addr: SocketAddr,
pub net_timeout: Duration,
pub rx_timeout: Duration,
pub max_packet_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
max_packet_size: usize
Maximum size of a UDP packet in bytes, specified in RFC 768
Trait Implementations§
source§impl Clone for UdpMockerOptions
impl Clone for UdpMockerOptions
source§fn clone(&self) -> UdpMockerOptions
fn clone(&self) -> UdpMockerOptions
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 UdpMockerOptions
impl Debug for UdpMockerOptions
Auto Trait Implementations§
impl Freeze for UdpMockerOptions
impl RefUnwindSafe for UdpMockerOptions
impl Send for UdpMockerOptions
impl Sync for UdpMockerOptions
impl Unpin for UdpMockerOptions
impl UnwindSafe for UdpMockerOptions
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
)