Skip to main content

ClientApplication

Trait ClientApplication 

Source
pub trait ClientApplication:
    DynClone
    + Send
    + Sync {
    // Required methods
    fn get_token_silent(&mut self) -> Result<String, AuthExecutionError>;
    fn get_token_silent_async<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<String, AuthExecutionError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn with_force_token_refresh(
        &mut self,
        force_token_refresh: ForceTokenRefresh,
    );
}

Required Methods§

Source

fn get_token_silent(&mut self) -> Result<String, AuthExecutionError>

Source

fn get_token_silent_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<String, AuthExecutionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source

fn with_force_token_refresh(&mut self, force_token_refresh: ForceTokenRefresh)

Trait Implementations§

Source§

impl<'clone> Clone for Box<dyn ClientApplication + 'clone>

Source§

fn clone(&self) -> Box<dyn ClientApplication + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn ClientApplication + Send + 'clone>

Source§

fn clone(&self) -> Box<dyn ClientApplication + Send + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn ClientApplication + Send + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn ClientApplication + Send + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone> Clone for Box<dyn ClientApplication + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn ClientApplication + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ClientApplication for String

Source§

fn get_token_silent(&mut self) -> Result<String, AuthExecutionError>

Source§

fn get_token_silent_async<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<String, AuthExecutionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, String: 'async_trait,

Source§

fn with_force_token_refresh(&mut self, _force_token_refresh: ForceTokenRefresh)

Implementors§