Struct msp::SocketConf
source · pub struct SocketConf {
pub read_time_out: Option<Duration>,
pub write_timeout: Option<Duration>,
pub rep_udp_ipv4: Ipv4Addr,
pub rep_udp_port: u16,
}
Expand description
Additional socket configuration.
Fields§
§read_time_out: Option<Duration>
Set the read timeout for socket.
write_timeout: Option<Duration>
Set the write timeout for socket.
rep_udp_ipv4: Ipv4Addr
Specify the address for creating a UDP connection. The default value is Ipv4Addr::UNSPECIFIED.
rep_udp_port: u16
Specify the port for creating a UDP connection. The default value is 8000.
Trait Implementations§
source§impl Clone for SocketConf
impl Clone for SocketConf
source§fn clone(&self) -> SocketConf
fn clone(&self) -> SocketConf
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 SocketConf
impl Debug for SocketConf
source§impl Default for SocketConf
impl Default for SocketConf
source§impl PartialEq<SocketConf> for SocketConf
impl PartialEq<SocketConf> for SocketConf
source§fn eq(&self, other: &SocketConf) -> bool
fn eq(&self, other: &SocketConf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SocketConf
impl StructuralEq for SocketConf
impl StructuralPartialEq for SocketConf
Auto Trait Implementations§
impl RefUnwindSafe for SocketConf
impl Send for SocketConf
impl Sync for SocketConf
impl Unpin for SocketConf
impl UnwindSafe for SocketConf
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