BinaryService

Trait BinaryService 

Source
pub trait BinaryService: Send + Sync {
    // Required methods
    fn svc_id(&self) -> u8;
    fn handle_binary<'life0, 'async_trait>(
        &'life0 self,
        ctx: RealtimeCtx,
        frame: HotFrame,
    ) -> Pin<Box<dyn Future<Output = Result<(), WsPrismError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
}
Expand description

Binary services (Hot Lane). Native only (no WASM/script).

Required Methods§

Source

fn svc_id(&self) -> u8

Source

fn handle_binary<'life0, 'async_trait>( &'life0 self, ctx: RealtimeCtx, frame: HotFrame, ) -> Pin<Box<dyn Future<Output = Result<(), WsPrismError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Implementors§