pub const MAX_UDSOCKET_PATH_LEN: usize = _MAX_UDSOCKET_PATH_LEN; // 108usizeAvailable on Unix and (
uds_supported) only.Expand description
The maximum path length for Unix domain sockets. UdStreamListener::bind panics if the specified path exceeds this value.
When using the socket namespace, this value is reduced by 1, since enabling the usage of that namespace takes up one character.
ยงValue
The following platforms define the value of this constant as 108:
- Linux
- includes Android
- Emscripten
- Redox
- HermitCore
- Solaris
- Illumos
The following platforms define the value of this constant as 104:
- FreeBSD
- OpenBSD
- NetBSD
- DragonflyBSD
- macOS
- iOS
The following platforms define the value of this constant as 126:
- Haiku