pub fn attach_to_interface(iface: &str) -> Result<Output, Error> {
    Ok(Command::new(TIPC)
        .arg("bearer")
        .arg("enable")
        .arg("media")
        .arg("eth")
        .arg("device")
        .arg(iface)
        .output()?)
}
/// Attach TIPC to an interface to allow communication with other
/// nodes on the network.
/// # Example
/// ```ignore
/// attach_to_interface("eth0").unwrap();
/// ```
Attach TIPC to an interface to allow communication with other
nodes on the network.
Attach TIPC to an interface to allow communication with other nodes on the network .
pub fn attach_to_interface(iface: &str) -> Result<Output, Error> {
    Ok(Command::new(TIPC)
        .arg("bearer")
        .arg("enable")
        .arg("media")
        .arg("eth")
        .arg("device")
        .arg(iface)
        .output()?)
}
pub fn attach_to_interface ( iface : & str ) -> Result < Output , Error > { Ok ( Command :: new ( TIPC ) . arg ( " " ) . arg ( " " ) . arg ( " " ) . arg ( " " ) . arg ( " " ) . arg ( iface ) . output ( ) ? ) }
Attach TIPC to an interface to allow communication with other
nodes on the network.
Attach TIPC to an interface to allow communication with other nodes on the network .
iface
&str
iface
&str
example
```ignore
attach_to_interface("eth0").unwrap();
```
` ` ` ignore attach_to_interface ( " eth0 " ) . unwrap () ; ` ` `