#How does Axum change the generic type param for Router state?

2 messages · Page 1 of 1 (latest)

sweet finch
#

it's just doing

pub fn with_state<S2>(self, state: S) -> Router<S2> { ... }
#

so it consumes a Router<()> and returns a Router<S2>