[][src]Module xaynet::services

This module implements the services the PET protocol provides.

There are two main types of services:

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 Fetcher service

message_handler

Construct a PetMessageHandler service