pub struct VirtualSocketConfig {
pub max_packet_size: u32,
pub send_buffer_size: u32,
pub recv_buffer_size: u32,
pub auto_fallback: bool,
}Expand description
Virtual socket configuration
Fields§
§max_packet_size: u32Maximum packet size (MTU)
send_buffer_size: u32Send buffer size
recv_buffer_size: u32Receive buffer size
auto_fallback: boolEnable automatic fallback
Trait Implementations§
Source§impl Clone for VirtualSocketConfig
impl Clone for VirtualSocketConfig
Source§fn clone(&self) -> VirtualSocketConfig
fn clone(&self) -> VirtualSocketConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VirtualSocketConfig
impl Debug for VirtualSocketConfig
Auto Trait Implementations§
impl Freeze for VirtualSocketConfig
impl RefUnwindSafe for VirtualSocketConfig
impl Send for VirtualSocketConfig
impl Sync for VirtualSocketConfig
impl Unpin for VirtualSocketConfig
impl UnsafeUnpin for VirtualSocketConfig
impl UnwindSafe for VirtualSocketConfig
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