pub fn decode_result_as<S, State, Task, Config, Context, Error>( task: &Task, ) -> Result<Option<S::Result>>where S: BackgroundTaskSpec<State, Task, Config, Context, Error>, Task: TaskRecord<S::Kind>,
Decodes a task result as the typed result for S.
S