Skip to main content

Module server

Module server 

Source
Expand description

Tracks server lifecycle state and its runtime handle.

The server coordinates reload, restart, and shutdown notifications. Shared services use its state to stop work promptly during teardown.

Re-exportsยง

use std::sync::Arc; ๐Ÿ”’
use std::sync::atomic::AtomicBool; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::time::SystemTime; ๐Ÿ”’
use ruma::OwnedServerName; ๐Ÿ”’
use tokio::runtime; ๐Ÿ”’
use tokio::sync::broadcast; ๐Ÿ”’
pub use self::progress::Progress;
use crate::Err; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::config; ๐Ÿ”’
use crate::config::Config; ๐Ÿ”’
use crate::log::Logging; ๐Ÿ”’
use crate::metrics::Metrics; ๐Ÿ”’

Modulesยง

progress ๐Ÿ”’
Progress of a long startup phase, readable while it runs.

Structsยง

Server
Server runtime state; public portion