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
46
47
48
49
50
51
52
53
54
55
56
57
58
pub
pub
pub use *;
pub use ;
/// Name for a local socket.
///
/// Due to significant differences between how different platforms name local sockets, there needs
/// to be a way to store and process those in a unified way while also retaining those
/// platform-specific pecularities. `Name` exists to bridge the gap between portability and
/// correctness, minimizing the amount of platform-dependent code in downstream programs.
///
/// # Creation
/// Two traits are used to create names from basic strings: [`ToFsName`](super::ToFsName) and
/// [`ToNsName`](super::ToNsName).
///
/// # Validity
/// As mentioned in the [module-level documentation](super), not all platforms support all types of
/// local socket names. Names pointing to filesystem locations are only supported on Unix-like
/// systems, and names pointing to an abstract namespace reserved specifically for local sockets are
/// only available on Linux and Windows.
///
/// Instances of this type cannot be constructed from unsupported values. They can, however, be
/// constructed from invalid ones.
);