Skip to main content

erased_route_resource

Function erased_route_resource 

Source
fn erased_route_resource(
    source: Arc<dyn Fn() -> ErasedKey + Send + Sync>,
    fetch: Arc<dyn Fn(ErasedKey) -> Pin<Box<dyn Future<Output = RawJson> + Send>> + Send + Sync>,
) -> Resource<RawJson, RawJsonCodec>
Expand description

唯一一处 Resource<RawJson, _> 实例化:source、fetch 都是 trait 对象。