Skip to main content

Module run

Module run 

Source

Re-exportsΒ§

use std::env::var_os; πŸ”’
use std::sync::Arc; πŸ”’
use std::sync::Weak; πŸ”’
use std::sync::atomic::Ordering; πŸ”’
use std::time::Duration; πŸ”’
use futures::FutureExt; πŸ”’
use futures::future::join; πŸ”’
use futures::pin_mut; πŸ”’
use sd_notify::NotifyState; πŸ”’
use sd_notify::notify; πŸ”’
use sd_notify::notify_and_unset_env; πŸ”’
use sd_notify::watchdog_enabled; πŸ”’
use tokio::time::MissedTickBehavior; πŸ”’
use tokio::time::interval; πŸ”’
use tuwunel_core::Error; πŸ”’
use tuwunel_core::Result; πŸ”’
use tuwunel_core::Server; πŸ”’
use tuwunel_core::debug; πŸ”’
use tuwunel_core::debug; πŸ”’
use tuwunel_core::debug_error; πŸ”’
use tuwunel_core::debug_info; πŸ”’
use tuwunel_core::defer; πŸ”’
use tuwunel_core::error; πŸ”’
use tuwunel_core::error; πŸ”’
use tuwunel_core::info; πŸ”’
use tuwunel_core::info; πŸ”’
use tuwunel_core::utils::BoolExt; πŸ”’
use tuwunel_core::warn; πŸ”’
use tuwunel_service::Services; πŸ”’
use crate::handle::ServerHandle; πŸ”’
use crate::serve; πŸ”’

ConstantsΒ§

STARTUP_INTERVAL πŸ”’
How often startup reports its progress and extends the service manager’s timeout.

FunctionsΒ§

handle_services_finish πŸ”’
handle_shutdown πŸ”’
notify_systemd πŸ”’
Sends notification states to the service manager.
notify_systemd_shutdown πŸ”’
notify_systemd_startup πŸ”’
Extends the service manager’s timeout by another interval and reports what the server is waiting on.
report_startup_progress πŸ”’
Reports the long startup phase in flight and keeps the service manager waiting for it.
run πŸ”’
Main loop base
signal πŸ”’
start πŸ”’
Async initializations
start_systemd_watchdog πŸ”’
stop πŸ”’
Async destructions