Trait netxserver::server::async_token_manager::IAsyncTokenManager[][src]

pub trait IAsyncTokenManager: Send + Sync {
#[must_use]    fn create_token<'life0, 'async_trait>(
        &'life0 self,
        manager: Weak<dyn IAsyncTokenManager>
    ) -> Pin<Box<dyn Future<Output = AResult<NetxToken>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_token<'life0, 'async_trait>(
        &'life0 self,
        sessionid: i64
    ) -> Pin<Box<dyn Future<Output = AResult<Option<NetxToken>>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn get_all_tokens<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = AResult<Vec<NetxToken>>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn check_tokens_request_timeout<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn check_tokens_disconnect_timeout<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn peer_disconnect<'life0, 'async_trait>(
        &'life0 self,
        sessionid: i64
    ) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn create_token<'life0, 'async_trait>(
    &'life0 self,
    manager: Weak<dyn IAsyncTokenManager>
) -> Pin<Box<dyn Future<Output = AResult<NetxToken>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn get_token<'life0, 'async_trait>(
    &'life0 self,
    sessionid: i64
) -> Pin<Box<dyn Future<Output = AResult<Option<NetxToken>>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn get_all_tokens<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = AResult<Vec<NetxToken>>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn check_tokens_request_timeout<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn check_tokens_disconnect_timeout<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn peer_disconnect<'life0, 'async_trait>(
    &'life0 self,
    sessionid: i64
) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl<T: ICreateController + 'static> IAsyncTokenManager for Actor<AsyncTokenManager<T>>[src]

Loading content...