Struct netxserver::Actor [−][src]
pub struct Actor<I> { /* fields omitted */ }
Implementations
Trait Implementations
fn set_controller_fun_maps<'life0, 'async_trait>(
&'life0 self,
map: HashMap<i32, Box<dyn FunctionInfo>>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn clear_controller_fun_maps<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn set_peer<'life0, 'async_trait>(
&'life0 self,
peer: Option<Weak<NetPeer>>
) -> 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<Weak<NetPeer>>>> + 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 run_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 send<'a, 'async_trait>(
&'a self,
buff: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
fn get_token<'life0, 'async_trait>(
&'life0 self,
sessionid: i64
) -> Pin<Box<dyn Future<Output = Result<Option<NetxToken>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_all_tokens<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<NetxToken>>> + 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,
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,
fn set_result<'life0, 'async_trait>(
&'life0 self,
serial: i64,
dr: 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 create_token<'life0, 'async_trait>(
&'life0 self,
manager: Weak<dyn IAsyncTokenManager>
) -> Pin<Box<dyn Future<Output = Result<NetxToken>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_token<'life0, 'async_trait>(
&'life0 self,
sessionid: i64
) -> Pin<Box<dyn Future<Output = Result<Option<NetxToken>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_all_tokens<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<NetxToken>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn check_tokens_request_timeout<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn is_disconnect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
Actor<TCPPeer<T>>: 'async_trait,
pub fn send<'a, 'async_trait>(
&'a self,
buff: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
Actor<TCPPeer<T>>: 'async_trait,
pub fn send_all<'a, 'async_trait>(
&'a self,
buff: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait + Send, Global>> where
'a: 'async_trait,
Actor<TCPPeer<T>>: 'async_trait,
impl<I, R, T, B, C, IST> ITCPServer<T> for Actor<TCPServer<I, R, T, B, C, IST>> where
C: AsyncRead + AsyncWrite + Send + 'static,
T: Clone + Send + Sync + 'static,
I: Fn(ReadHalf<C>, Arc<Actor<TCPPeer<C>>>, T) -> R + Send + Sync + 'static,
R: Future<Output = Result<(), Error>> + Send + 'static,
B: Future<Output = Result<C, Error>> + Send + 'static,
IST: Fn(TcpStream) -> B + Send + Sync + 'static,
impl<I, R, T, B, C, IST> ITCPServer<T> for Actor<TCPServer<I, R, T, B, C, IST>> where
C: AsyncRead + AsyncWrite + Send + 'static,
T: Clone + Send + Sync + 'static,
I: Fn(ReadHalf<C>, Arc<Actor<TCPPeer<C>>>, T) -> R + Send + Sync + 'static,
R: Future<Output = Result<(), Error>> + Send + 'static,
B: Future<Output = Result<C, Error>> + Send + 'static,
IST: Fn(TcpStream) -> B + Send + Sync + 'static,
Auto Trait Implementations
impl<I> !RefUnwindSafe for Actor<I>
impl<I> !UnwindSafe for Actor<I>