pub fn finalize(self) -> Interface<'b, 'c, DeviceT> {
        match (self.ethernet_addr, self.neighbor_cache) {
            (Some(ethernet_addr), Some(neighbor_cache)) => {
                let device_capabilities = self.device.capabilities();
                Interface {
                    device: self.device,
                    inner: InterfaceInner {
                        ethernet_addr, device_capabilities, neighbor_cache,
                        ip_addrs: self.ip_addrs,
                        #[cfg(feature = "proto-ipv4")]
                        ipv4_gateway: self.ipv4_gateway,
                    }
                }
            },
            _ => panic!("a required option was not set"),
        }
    }
/// Create a network interface using the previously provided configuration.
///
/// # Panics
/// If a required option is not provided, this function will panic. Required
/// options are:
///
/// - [ethernet_addr]
/// - [neighbor_cache]
///
/// [ethernet_addr]: #method.ethernet_addr
/// [neighbor_cache]: #method.neighbor_cache
Create a network interface using the previously provided configuration.
Create a network interface using the previously provided configuration .
pub fn finalize(self) -> Interface<'b, 'c, DeviceT> {
        match (self.ethernet_addr, self.neighbor_cache) {
            (Some(ethernet_addr), Some(neighbor_cache)) => {
                let device_capabilities = self.device.capabilities();
                Interface {
                    device: self.device,
                    inner: InterfaceInner {
                        ethernet_addr, device_capabilities, neighbor_cache,
                        ip_addrs: self.ip_addrs,
                        #[cfg(feature = "proto-ipv4")]
                        ipv4_gateway: self.ipv4_gateway,
                    }
                }
            },
            _ => panic!("a required option was not set"),
        }
    }
pub fn finalize ( self ) -> Interface < ' b , ' c , DeviceT > { match ( self . ethernet_addr , self . neighbor_cache ) { ( Some ( ethernet_addr ) , Some ( neighbor_cache ) ) => { let device_capabilities = self . device . capabilities ( ) ; Interface { device : self . device , inner : InterfaceInner { ethernet_addr , device_capabilities , neighbor_cache , ip_addrs : self . ip_addrs , # [ cfg ( feature " " ) ] ipv4_gateway : self . ipv4_gateway , } } } , _ => panic ! ( " " ) , } }
Create a network interface using the previously provided configuration.
Create a network interface using the previously provided configuration .
self
self
panics
If a required option is not provided, this function will panic. Required
options are.



[ethernet_addr]: #method.ethernet_addr
[neighbor_cache]: #method.neighbor_cache
If a required option is not provided this function will panic . Required options are . [ ethernet_addr ] : #method . ethernet_addr [ neighbor_cache ] : #method . neighbor_cache