Trait AddressBinding

Source
pub trait AddressBinding {
    // Required method
    fn bind_to_device(&self, opt: BindDeviceOption<'_>) -> Result<()>;
}

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl AddressBinding for Socket

Implementors§