Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API to allow listening for file events #394

Merged
merged 1 commit into from
Dec 24, 2021

Conversation

hannesdejager
Copy link
Collaborator

@hannesdejager hannesdejager commented Dec 17, 2021

This adds a notification API where users can provide listeners to events in unFTP. These were added to the Server struct:

    /// Sets an [`DataListener`](crate::notification::DataListener) that will
    /// be notified of data changes that happen in a user's session.
    pub fn notify_data(mut self, listener: Box<dyn DataListener>) -> Self

    /// Sets an [`PresenceListener`](crate::notification::PresenceListener) that will
    /// be notified of use logins and logouts
    pub fn notify_presence(mut self, listener: Box<dyn PresenceListener>) -> Self 

@hannesdejager hannesdejager force-pushed the hannes/notification branch 9 times, most recently from d08f43f to 63b8ed0 Compare December 24, 2021 16:14
@hannesdejager hannesdejager merged commit 20a7f85 into master Dec 24, 2021
@hannesdejager hannesdejager deleted the hannes/notification branch December 24, 2021 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant