ZxioTokenResolver

Trait ZxioTokenResolver 

Source
pub trait ZxioTokenResolver: Send + Sync {
    // Required method
    fn get_token(&self, token_type: ZxioTokenType) -> Option<NullableHandle>;
}
Expand description

Trait for token resolvers. It’s called to get access tokens and sharing domain tokens when handling operations that require these tokens. Token resolver can be attached to a Zxio object by calling set_token_resolver.

Required Methods§

Source

fn get_token(&self, token_type: ZxioTokenType) -> Option<NullableHandle>

Returns a token of the specified type.

Implementors§