Function matrix_appservice_rs::serve[][src]

pub async fn serve<S, F, R>(addrs: S, handler: F) -> Result<(), Error> where
    S: ToSocketAddrs,
    F: Fn(String, Vec<Raw<AnyRoomEvent>>) -> R + Sync + Send + Clone + 'static,
    R: Future<Output = Result<String, Infallible>> + Send
Expand description

Listen on addrs for incoming events, and use the given handler to handle those events.