pub trait Host: Send {
// Required method
fn get(
&mut self,
audience: String,
) -> impl Future<Output = Result<Result<Option<String>, Error>>> + Send;
}Required Methods§
Sourcefn get(
&mut self,
audience: String,
) -> impl Future<Output = Result<Result<Option<String>, Error>>> + Send
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
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
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.