Trait IntoBlockingMap

Source
pub trait IntoBlockingMap<M> {
    type MapType;

    // Required method
    fn into_blocking_map(self) -> Self::MapType;
}
Expand description

Convert any FnMut into a BlockingMapDef.

Required Associated Types§

Required Methods§

Implementors§

Source§

impl<F, Request, Response, Streams> IntoBlockingMap<(Request, Response, Streams)> for F
where F: FnMut(Request) -> Response + 'static + Send + Sync, Request: 'static + Send + Sync, Response: 'static + Send + Sync, Streams: StreamPack,

Source§

type MapType = BlockingMapDef<BlockingMapAdapter<F>, Request, Response, Streams>