servlet 1.2.0

A small application runtime with an explicit operational contract
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Required workers and read-only shutdown notification.

mod context;
mod poll;
mod registration;
mod supervisor;

pub use context::{Shutdown, WorkerContext};
pub use poll::{PollOutcome, PollPolicy, PollProgress, PollShutdown, PollSnapshot};
pub(crate) use registration::{Cleanup, CleanupFactory, Worker};
pub(crate) use supervisor::Supervisor;

/// An application error crossing a worker or cleanup boundary.
pub type BoxError = Box<dyn std::error::Error + Send + Sync>;
/// The result returned by registered workers and cleanup functions.
pub type Result = std::result::Result<(), BoxError>;