Skip to main content

Module server

Module server 

Source
Expand description

What’s common between PubHubs servers

Macros§

factory_tuple 🔒
Implements actix_web::Handler for an AppMethod with the given number of arguments.

Structs§

AppBase
What’s internally common between PubHubs Apps.
AppCreatorBase
What’s internally common between PubHubs AppCreators.
AppMethod
An App together with a method on it. Used to pass Apps to actix_web::Handlers as first argument. See api::EndpointDetails::add_to.
Exiter
Modifier that stops the server
RunningState
Additional state when discovery has been completed. Derefs to Extra.
ServerImpl
Basic implementation of Server.
SharedState
Shared state between Apps. Use sparingly!
SharedStateInner

Enums§

Command 🔒
Commands an App can issue to its runner.
DiscoverVerdict
Result of App::discover.
Name
Enumerates the names of the different PubHubs servers

Traits§

App
What’s common between the actix_web::Apps used by the different PubHubs servers.
AppCreator
What’s cloned and moved accross threads by a Server to create its App instances.
Details
Details needed to create a ServerImpl type.
Inspector 🔒
What inspects a server via Command::Inspect.
Modifier
What modifies a Server via Command::Modify.
Server
Common API to the different PubHubs servers.

Functions§

response_type_to_responder 🔒
Helper method for factory_tuple macro.

Type Aliases§

BoxInspector
Owned dynamically typed Inspector.
BoxModifier
Owned dynamically typed Modifier.