MAC vendor lookup: Difference between revisions

m
no edit summary
(Adding Rust solution)
mNo edit summary
Line 719:
match get_vendor("88:53:2E:67:07:BE") {
None => println!("Error!"),
Some(text) => println!("{:?}", text),
}
thread::sleep(duration);
match get_vendor("FC:FB:FB:01:FA:21") {
None => println!("Error!"),
Some(text) => println!("{:?}", text),
}
thread::sleep(duration);
match get_vendor("FC-A1-3E") {
None => println!("Error!"),
Some(text) => println!("{:?}", text),
}
thread::sleep(duration);
match get_vendor("abcdefg") {
None => println!("Error!"),
Some(text) => println!("{:?}", text),
}
}
Line 740:
Output:
<pre>
"Intel Corporate"
"Cisco Systems, Inc"
"Samsung Electronics Co.,Ltd"
"N/A"
</pre>
=={{header|Scala}}==