Registry / networking / mio-uds

mio-uds

JSON →
library0.6.8rscratesunverified

Unix domain socket bindings for the mio event-driven I/O library.

# Cargo.toml [dependencies] mio-uds = "0.6.8"
INSTALL
IMPORT
SIG · MIO-UDS
M
mio-uds
networkingrustv0.6.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UnixListener
use mio_uds::UnixListener;

Sets up a Unix domain socket listener with mio.

use mio_uds::UnixListener; use mio::{Events, Poll, Token}; let listener = UnixListener::bind("/tmp/socket").unwrap(); let poll = Poll::new().unwrap(); poll.register(&listener, Token(0), mio::Ready::readable(), mio::PollOpt::edge()).unwrap(); let mut events = Events::with_capacity(1024); poll.poll(&mut events, None).unwrap();
Debug
Known issues
breakingThis crate is deprecated; Unix domain sockets are now part of mio core.
fix
Use `mio::net::UnixListener` instead (mio >= 0.7).
affects: >=0.7.0
Upgrade
Version history
0.6.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mio-uds — cargo add mio-uds · libregistry