Registry / networking / listenfd

listenfd

JSON →
library1.0.2rscratesunverified

A simple library to work with listenfds passed from the outside (systemd/catflap socket activation).

# Cargo.toml [dependencies] listenfd = "1.0.2"
INSTALL
IMPORT
SIG · LISTENFD
L
listenfd
networkingrustv1.0.2
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.

ListenFd
use listenfd::ListenFd;

Takes a TCP listener from environment file descriptors.

use listenfd::ListenFd; fn main() { let mut listenfd = ListenFd::from_env().unwrap(); if let Some(tcp_listener) = listenfd.take_tcp_listener(0).unwrap() { println!("Got listener: {:?}", tcp_listener); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
listenfd — cargo add listenfd · libregistry