Struct netxclient::Actor [−][src]
pub struct Actor<I> { /* fields omitted */ }
Implementations
Trait Implementations
impl<T: SessionSave + 'static> INetXClient<T> for Actor<NetXClient<T>>
[src]
impl<T: SessionSave + 'static> INetXClient<T> for Actor<NetXClient<T>>
[src]fn init<'life0, 'async_trait, C: IController + Sync + Send + 'static>(
&'life0 self,
controller: C
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
C: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
controller: C
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
C: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
fn connect_network<'life0, 'async_trait>(
self: &'life0 Arc<Self>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
self: &'life0 Arc<Self>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_address(&self) -> String
[src]
fn get_serviceinfo(&self) -> ServerOption
[src]
fn get_sessionid(&self) -> i64
[src]
fn get_mode(&self) -> u8
[src]
fn new_serial(&self) -> i64
[src]
fn is_connect(&self) -> bool
[src]
fn get_peer<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<Actor<TcpClient>>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<Actor<TcpClient>>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn store_sessionid<'life0, 'async_trait>(
&'life0 self,
sessionid: i64
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
sessionid: i64
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn set_mode<'life0, 'async_trait>(
&'life0 self,
mode: u8
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
mode: u8
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn set_network_client<'life0, 'async_trait>(
&'life0 self,
client: Arc<Actor<TcpClient>>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
client: Arc<Actor<TcpClient>>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn reset_connect_stats<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_callback_len<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn set_result<'life0, 'async_trait>(
&'life0 self,
serial: i64,
data: Data
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
serial: i64,
data: Data
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn set_error<'life0, 'async_trait>(
&'life0 self,
serial: i64,
err: Error
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
serial: i64,
err: Error
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn set_request_manager<'life0, 'async_trait>(
&'life0 self,
request: Arc<Actor<RequestManager<T>>>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: Arc<Actor<RequestManager<T>>>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn call_special_function<'life0, 'async_trait>(
&'life0 self,
cmd: i32
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
cmd: i32
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn call_controller<'life0, 'async_trait>(
&'life0 self,
tt: u8,
cmd: i32,
data: Data
) -> Pin<Box<dyn Future<Output = RetResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
tt: u8,
cmd: i32,
data: Data
) -> Pin<Box<dyn Future<Output = RetResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 self,
serial: i64,
buff: Data
) -> Pin<Box<dyn Future<Output = Result<RetResult>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
serial: i64,
buff: Data
) -> Pin<Box<dyn Future<Output = Result<RetResult>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
buff: Data
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
buff: Data
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl SocketClientTrait for Actor<TcpClient>
[src]
impl SocketClientTrait for Actor<TcpClient>
[src]pub fn send<'life0, 'async_trait, T>(
&'life0 self,
buff: T
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
T: 'static + Deref<Target = [u8]> + Send + Sync + 'async_trait,
Actor<TcpClient>: 'async_trait,
[src]
&'life0 self,
buff: T
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
T: 'static + Deref<Target = [u8]> + Send + Sync + 'async_trait,
Actor<TcpClient>: 'async_trait,
pub fn disconnect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Actor<TcpClient>: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Actor<TcpClient>: 'async_trait,