Skip to main content

intercepted

Function intercepted 

Source
pub async fn intercepted(channel: &Channel, auth: &Auth) -> Result<Intercepted>
Expand description

Wrap channel with a fresh bearer token resolved from auth, ready to back a generated gRPC client for one call.

ยงErrors

Propagates token-resolution errors from the Auth source.