pub trait INetXClient {
Show 15 methods // Required methods fn init<C: IController + Sync + Send + 'static>( &self, controller: C ) -> impl Future<Output = Result<()>>; fn connect_network( self: &Arc<Self> ) -> impl Future<Output = Result<()>> + Send; fn get_tls_config(&self) -> TlsConfig; fn get_address(&self) -> String; fn get_service_info(&self) -> ServerOption; fn get_session_id(&self) -> i64; fn get_mode(&self) -> u8; fn new_serial(&self) -> i64; fn is_connect(&self) -> bool; fn get_peer(&self) -> impl Future<Output = Option<Arc<NetPeer>>>; fn set_network_client( &self, client: Arc<NetPeer> ) -> impl Future<Output = ()>; fn get_callback_len(&self) -> impl Future<Output = usize>; fn close(&self) -> impl Future<Output = Result<()>>; fn call( &self, serial: i64, buff: Data ) -> impl Future<Output = Result<RetResult>>; fn run(&self, buff: Data) -> impl Future<Output = Result<()>>;
}

Required Methods§

source

fn init<C: IController + Sync + Send + 'static>( &self, controller: C ) -> impl Future<Output = Result<()>>

init netx client controller

source

fn connect_network(self: &Arc<Self>) -> impl Future<Output = Result<()>> + Send

connect to network

source

fn get_tls_config(&self) -> TlsConfig

get ssl

source

fn get_address(&self) -> String

get netx server address

source

fn get_service_info(&self) -> ServerOption

get netx client service config

source

fn get_session_id(&self) -> i64

get netx session id

source

fn get_mode(&self) -> u8

get netx mode

source

fn new_serial(&self) -> i64

new serial id

source

fn is_connect(&self) -> bool

is connect to server

source

fn get_peer(&self) -> impl Future<Output = Option<Arc<NetPeer>>>

get tcp socket peer

source

fn set_network_client(&self, client: Arc<NetPeer>) -> impl Future<Output = ()>

set tcp socket peer

source

fn get_callback_len(&self) -> impl Future<Output = usize>

get request wait callback len

source

fn close(&self) -> impl Future<Output = Result<()>>

close netx client

source

fn call( &self, serial: i64, buff: Data ) -> impl Future<Output = Result<RetResult>>

call

source

fn run(&self, buff: Data) -> impl Future<Output = Result<()>>

run

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: SessionSave + 'static> INetXClient for Actor<NetXClient<T>>