[−][src]Module xaynet::services
This module implements the services the PET protocol provides.
There are two main types of services:
- the services for fetching data broadcasted by the state machine:
MaskLengthService
: for fetching the length of the modelModelService
: for fetching the last available global modelRoundParamsService
: for fetching the current round parametersScalarService
: for fetching the scalar used for aggregationSeedDictService
: for fetching the seed dictionarySumDictService
: for fetching the sum dictionary
- the services for handling PET messages from the participant:
MessageParserService
: decrypt and parses incoming messagePreProcessorService
: performs sanity checks on the messages (verify the task signatures, etc.)StateMachineService
: pass the messages down to the state machine for actual processing
The Fetcher
trait provides a unified interface for the first
category of services. A Fetcher
is a service that provides all
the subservices listed above. The PetMessageHandler
trait is
an interface for the second category of services.
Re-exports
pub use self::fetchers::FetchError; |
pub use self::fetchers::Fetcher; |
pub use self::messages::PetMessageError; |
pub use self::messages::PetMessageHandler; |
Modules
fetchers | This module provides the services for serving data. |
messages | This module provides the services for processing PET messages. |
Functions
fetcher | Construct a |
message_handler | Construct a |