1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// socketcan/src/enumerate.rs
//
// Implements support for enumerating available SocketCAN network interfaces.
//
// This file is part of the Rust 'socketcan-rs' library.
//
// Licensed under the MIT license:
// <LICENSE or http://opensource.org/licenses/MIT>
// This file may not be copied, modified, or distributed except according
// to those terms.
//! SocketCAN interface enumeration.
//!
//! This module provides functionality to enumerate available SocketCAN
//! network interfaces. It uses the Linux `udev` facility to search for
//! matching devices.
//!
//! # Availability
//!
//! This module requires the `enumerate` cargo feature flag.
//! Requires the
use crateResult;
use ARPHRD_CAN;
use Enumerator;
/// Scans the system for available SocketCAN network interfaces and returns a
/// list of them.