Expand description
Low-level socket handling code. Socket handling is platform specific code.
The submodules of this module represent the different implementations for each supported platform. Depending on the target, the respective platform is read and loaded into this scope.
Enums§
- Connection
Settings - Describe how a client should connect to the daemon.
Traits§
- Blocking
Listener - A new trait, which can be used to represent Unix- and TcpListeners.
This is necessary to easily write generic functions where both types can be used. - Blocking
Stream
Functions§
- get_
client_ stream - Get a new stream for the client.
This can either be a UnixStream or a Tls encrypted TCPStream, depending on the parameters. - get_
tls_ connector - Initialize our client TlsConnector. \
Type Aliases§
- Generic
Blocking Listener - Convenience type, so we don’t have type write
Box<dyn Listener>all the time. - Generic
Blocking Stream - Convenience type, so we don’t have type write
Box<dyn Stream>all the time.
This also prevents name collisions, sinceStreamis imported in many preludes.