Skip to main content

answer

Function answer 

Source
async fn answer<A, B, V, F, Fut>(
    row: Result<Result<A, B>>,
    answered: Option<(OwnedRoomId, V)>,
    room: fn(&A) -> &RoomId,
    resolve: &F,
) -> (Result<Result<(A, V), B>>, Option<(OwnedRoomId, V)>)
where A: Send, B: Send, V: Clone + Send, F: Fn(OwnedRoomId) -> Fut + Sync, Fut: Future<Output = Result<V>> + Send,