pub struct SocketOptions { /* private fields */ }
Expand description
Socket options, such as remote address to connect to.
This is used by TcpSocket
and
UdpSocket
when used as
EasySocket
s.
§Fields
remote
: Remote address to connect to
Implementations§
Source§impl SocketOptions
impl SocketOptions
Sourcepub fn new(remote: SocketAddr) -> SocketOptions
pub fn new(remote: SocketAddr) -> SocketOptions
Create a new socket options
Sourcepub fn remote(&self) -> SocketAddr
pub fn remote(&self) -> SocketAddr
Get the remote address
Trait Implementations§
Source§impl Clone for SocketOptions
impl Clone for SocketOptions
Source§fn clone(&self) -> SocketOptions
fn clone(&self) -> SocketOptions
Returns a duplicate 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 SocketOptions
impl Debug for SocketOptions
Source§impl PartialEq for SocketOptions
impl PartialEq for SocketOptions
impl Copy for SocketOptions
impl Eq for SocketOptions
impl StructuralPartialEq for SocketOptions
Auto Trait Implementations§
impl Freeze for SocketOptions
impl RefUnwindSafe for SocketOptions
impl Send for SocketOptions
impl Sync for SocketOptions
impl Unpin for SocketOptions
impl UnwindSafe for SocketOptions
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