Function define_api

Source
fn define_api<State, BindVer: StaticVersionType + 'static>(
    options: &Options,
    bind_version: BindVer,
    api_ver: Version,
) -> Result<Api<State, ServerError, BindVer>, ApiError>
where State: 'static + Send + Sync + ReadState + WriteState, <State as ReadState>::State: Send + Sync + LCV1StateRelayServerDataSource + LCV2StateRelayServerDataSource + LCV3StateRelayServerDataSource,
Expand description

Set up APIs for relay server