pub struct BindToDevice;
Available on crate feature
socket
only.Expand description
Bind this socket to a particular device like “eth0”.
Trait Implementations§
source§impl Clone for BindToDevice
impl Clone for BindToDevice
source§fn clone(&self) -> BindToDevice
fn clone(&self) -> BindToDevice
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 BindToDevice
impl Debug for BindToDevice
source§impl GetSockOpt for BindToDevice
impl GetSockOpt for BindToDevice
source§impl Hash for BindToDevice
impl Hash for BindToDevice
source§impl PartialEq<BindToDevice> for BindToDevice
impl PartialEq<BindToDevice> for BindToDevice
source§fn eq(&self, other: &BindToDevice) -> bool
fn eq(&self, other: &BindToDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.