Function define_api

Source
pub fn define_api<State, Types, Ver>(
    options: &Options,
    api_ver: Version,
) -> Result<Api<State, Error, Ver>, ApiError>
where State: 'static + Send + Sync + ReadState, <State as ReadState>::State: Send + Sync + EventsSource<Types>, Types: NodeType, Ver: StaticVersionType + 'static,