Crate sage_broker

Crate sage_broker 

Source
Expand description

sage_broker library.

Modules§

service
All functions related to service control. The broker service is made of a set of background async tasks.

Structs§

BrokerSettings
Configuration structure for a broker. This structure is used to customize the behaviour of your broker. It is used as a parameter for the start function.
Publisher
Interface for publishing messages
Session
Represents a client and holds all of its data, may it be active or not. If the client is connected, peer is used to retrieve its information and send him packets.
Sessions
Holds sessions manipulated from the Command Loop
Subs
The list of all subcriptions registered by the broker
Trigger
The Tigger class represents a one-way shared boolean. It has the following features:

Type Aliases§

CommandReceiver
The MPSC sender for controlling a running server
CommandSender
The MPSC sender for controlling a running server