Module suss::socket_shims
source · [−]Expand description
Provide semi-unified interface to unix sockets api for arbitrary different async runtimes or perhaps actually-sync-under-the-hood interfaces.
Structs
Implementation of unix sockets using the async_std
primitives.
Uses blocking::unblock
and blocking::Unblock
to avoid blocking async threads. This is
simple and it will work with a crate like pollster
if you don’t care about async stuff -
that should avoid pulling in lots of heavier dependencies. You could also use something like
smol
for a lightweight async runtime if you want a little async, but not the heavyweights
of async_std
or tokio
Traits
Provide a unified interface to unix sockets in various points of existence. You can provide your own version of this in future if you have a runtime that is not supported.