Module libunftp::notification
source · Expand description
Allows users to listen to events emitted by libunftp.
To listen for changes in data implement the DataListener
trait and use the Server::notify_data
method
to make libunftp notify it.
To listen to logins and logouts implement the PresenceListener
trait and use the Server::notify_presence
method
to make libunftp use it.
Structs
Metadata relating to an event that can be used to to identify the user and session. A sequence
number is also included to allow ordering in systems where event ordering is not guaranteed.
Enums
An event signalling a change in data on the storage back-end. To identify the corresponding user
or session see the
EventMeta
struct.An event pertaining to a client’s login and logout actions in order to allow detection of the
presence of a client. Instances of these will be passed to an
PresenceListener
.
To identify the corresponding user or session see the EventMeta
struct.Traits
An listener for
DataEvent
s. Implementations can
be passed to Server::notify_data
in order to receive notifications.An listener for
PresenceEvent
s. Implementations can
be passed to Server::notify_presence
in order to receive notifications.