pub fn destroy_bus(name: &str) {
    let output = Command::new("sudo")
        .arg("ip")
        .arg("link")
        .arg("del")
        .arg("dev")
        .arg(name)
        .output()
        .expect("failed to execute process");

    if !output.stderr.is_empty() {
        io::stderr().write_all(&output.stderr).unwrap();
        panic!("Unable to destroy bus {}", name)
    }
}
/// Destroy a vcan bus using the following commands:
/// sudo ip link del dev <name>
/// This function will panic if errors are returned
Destroy a vcan bus using the following commands:
sudo ip link del dev 
This function will panic if errors are returned
Destroy a vcan bus using the following commands : sudo ip link del dev This function will panic if errors are returned
pub fn destroy_bus(name: &str) {
    let output = Command::new("sudo")
        .arg("ip")
        .arg("link")
        .arg("del")
        .arg("dev")
        .arg(name)
        .output()
        .expect("failed to execute process");
    if !output.stderr.is_empty() {
        io::stderr().write_all(&output.stderr).unwrap();
        panic!("Unable to destroy bus {}", name)
    }
}
pub fn destroy_bus ( name : & str ) { let output = Command :: new ( " " ) . arg ( " " ) . arg ( " " ) . arg ( " " ) . arg ( " " ) . arg ( name ) . output ( ) . expect ( " " ) ; if ! output . stderr . is_empty ( ) { io :: stderr ( ) . write_all ( & output . stderr ) . unwrap ( ) ; panic ! ( " " name ) } }
Destroy a vcan bus using the following commands:
sudo ip link del dev <name>
This function will panic if errors are returned
Destroy a vcan bus using the following commands : sudo ip link del dev <name > This function will panic if errors are returned
name
&str
name
&str