pub trait RemoteEventsManager<F, C>{
    // Required method
    fn listen_event(
        self,
        name: String,
        handler: F
    ) -> Result<JoinHandle<Result<(), FbError>>, FbError>;
}
Expand description

Firebird remote events manager

Required Methods§

source

fn listen_event( self, name: String, handler: F ) -> Result<JoinHandle<Result<(), FbError>>, FbError>

Start the event listener on a thread

The event can be called many times.

Stop when the handler return a error. Return a false value if you want stop the listner,

Implementors§