Skip to main content

Module serve

Module serve 

Source

Re-exportsยง

use std::borrow::Cow; ๐Ÿ”’
use std::os::unix::net::UnixListener; ๐Ÿ”’
use std::iter::once; ๐Ÿ”’
use std::net::Ipv4Addr; ๐Ÿ”’
use std::net::SocketAddr; ๐Ÿ”’
use std::net::TcpListener; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use tokio::task::JoinSet; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::debug_info; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::error; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::info; ๐Ÿ”’
use tuwunel_core::itertools::Itertools; ๐Ÿ”’
use tuwunel_core::utils::sys::is_ipv6_only; ๐Ÿ”’
use tuwunel_service::Services; ๐Ÿ”’
use super::layers; ๐Ÿ”’
use crate::handle::ServerHandle; ๐Ÿ”’

Modulesยง

plain ๐Ÿ”’
tls ๐Ÿ”’
unix ๐Ÿ”’

Functionsยง

bind_addrs ๐Ÿ”’
Binds the addresses nothing answers for yet, extending listening as it goes so a wildcard entry covers the ones behind it.
covers ๐Ÿ”’
Whether a listener on one address answers for another, which is the case when they name the same socket or the listener holds the wider wildcard.
listening_addrs ๐Ÿ”’
Addresses a listener answers on. An unspecified address stands for every address of its family, and a dual-stack listener stands for the IPv4 wildcard as well.
make_log_addrs ๐Ÿ”’
passed_addrs ๐Ÿ”’
Addresses the service manager already listens on for us.
same_path ๐Ÿ”’
Paths naming one socket, however the configuration spelled it.
serve ๐Ÿ”’
Serve clients
systemd_listeners ๐Ÿ”’
unpassed_path ๐Ÿ”’
Drops the configured unix socket when a passed listener already binds that path, which would otherwise be unlinked and replaced on the way up.