Skip to main content

DefineHandler

Type Alias DefineHandler 

Source
pub type DefineHandler = Arc<dyn Fn(DefineArgs) -> Result<SessionId, String> + Send + Sync>;
Expand description

Builds a worker from DefineArgs and returns its address. A socket server uses it to answer wcode_harness::protocol::Request::Define; the composition root injects one, since this crate cannot name a session factory.

Aliased Typeยง

pub struct DefineHandler { /* private fields */ }