Skip to main content

ClientProxyModeHandler

Trait ClientProxyModeHandler 

Source
pub trait ClientProxyModeHandler<T>: Send + Sync {
    // Required methods
    fn initialize_client<'life0, 'life1, 'async_trait>(
        &'life0 self,
        actor: &'life1 mut MinecraftClient<T>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_internal_client<'life0, 'life1, 'async_trait>(
        &'life0 self,
        message: T,
        actor: &'life1 mut MinecraftClient<T>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn handle_external_client<'life0, 'life1, 'async_trait>(
        &'life0 self,
        data: PossibleReadValue,
        actor: &'life1 mut MinecraftClient<T>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn initialize_client<'life0, 'life1, 'async_trait>( &'life0 self, actor: &'life1 mut MinecraftClient<T>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_internal_client<'life0, 'life1, 'async_trait>( &'life0 self, message: T, actor: &'life1 mut MinecraftClient<T>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn handle_external_client<'life0, 'life1, 'async_trait>( &'life0 self, data: PossibleReadValue, actor: &'life1 mut MinecraftClient<T>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§