Host

Trait Host 

Source
pub trait Host: Send {
    // Required method
    fn get(
        &mut self,
        audience: String,
    ) -> impl Future<Output = Result<Result<Option<String>, Error>>> + Send;
}

Required Methods§

Source

fn get( &mut self, audience: String, ) -> impl Future<Output = Result<Result<Option<String>, Error>>> + Send

Gets a single JWT-SVID represented in the form of a (token) string.

The value is returned as an option<string>. If the identity is not found, Ok(none) is returned. If an error occurs, an Err(error) is returned.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<_T: Host + ?Sized + Send> Host for &mut _T

Source§

fn get( &mut self, audience: String, ) -> impl Future<Output = Result<Result<Option<String>, Error>>> + Send

Gets a single JWT-SVID represented in the form of a (token) string.

The value is returned as an option<string>. If the identity is not found, Ok(none) is returned. If an error occurs, an Err(error) is returned.

Implementors§

Source§

impl<H: Handler> Host for Ctx<H>