Struct netxclient::Actor [−][src]
pub struct Actor<I> { /* fields omitted */ }
Implementations
Trait Implementations
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,
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,
fn get_peer<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Arc<NetPeer>>>> + 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,
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,
fn set_network_client<'life0, 'async_trait>(
&'life0 self,
client: Arc<NetPeer>
) -> 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,
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,
fn set_result<'life0, 'async_trait>(
&'life0 self,
serial: i64,
data: DataOwnedReader
) -> 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,
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,
fn call_controller<'life0, 'async_trait>(
&'life0 self,
tt: u8,
cmd: i32,
dr: DataOwnedReader
) -> 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,
impl<T> SocketClientTrait for Actor<TcpClient<T>> where
T: AsyncRead + AsyncWrite + Send + 'static,
impl<T> SocketClientTrait for Actor<TcpClient<T>> where
T: AsyncRead + AsyncWrite + Send + 'static,
pub fn send<'life0, 'async_trait, B>(
&'life0 self,
buff: B
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
B: 'static + Deref<Target = [u8]> + Send + Sync + 'async_trait,
Actor<TcpClient<T>>: 'async_trait,
pub fn send_all<'life0, 'async_trait, B>(
&'life0 self,
buff: B
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
B: 'static + Deref<Target = [u8]> + Send + Sync + 'async_trait,
Actor<TcpClient<T>>: 'async_trait,
pub fn send_ref<'a, 'async_trait>(
&'a self,
buff: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait, Global>> where
'a: 'async_trait,
Actor<TcpClient<T>>: 'async_trait,
pub fn send_all_ref<'a, 'async_trait>(
&'a self,
buff: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>> where
'a: 'async_trait,
Actor<TcpClient<T>>: 'async_trait,
Auto Trait Implementations
impl<I> !RefUnwindSafe for Actor<I>
impl<I> !UnwindSafe for Actor<I>