pub trait AddressBinding {
// Required method
fn bind_to_device(&self, opt: BindDeviceOption<'_>) -> Result<()>;
}
Required Methods§
Sourcefn bind_to_device(&self, opt: BindDeviceOption<'_>) -> Result<()>
fn bind_to_device(&self, opt: BindDeviceOption<'_>) -> Result<()>
Bind socket to device with name:
Use name to find the adapter address and bind it on Windows.
Call system builtin socket bind device method on non-Windows.