pub struct Router<T: Supervisor> { /* private fields */ }Implementations§
Source§impl<T: Supervisor> Router<T>
impl<T: Supervisor> Router<T>
pub fn new( supervisor: SupervisorLink<T>, external_server: HttpServerLink, external_port: u16, internal_server: HttpServerLink, global_acl: SessionAcl, ) -> Self
Trait Implementations§
Source§impl<T: Supervisor> ActionHandler<ChangeLimits> for Router<T>
impl<T: Supervisor> ActionHandler<ChangeLimits> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
limits: ChangeLimits,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
limits: ChangeLimits,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T: Supervisor> ActionHandler<WsReq<ClientLive>> for Router<T>
impl<T: Supervisor> ActionHandler<WsReq<ClientLive>> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
req: WsReq<ClientLive>,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
req: WsReq<ClientLive>,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T: Supervisor> ActionHandler<WsReq<ProviderLive>> for Router<T>
impl<T: Supervisor> ActionHandler<WsReq<ProviderLive>> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
req: WsReq<ProviderLive>,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
req: WsReq<ProviderLive>,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T: Supervisor> Actor for Router<T>
impl<T: Supervisor> Actor for Router<T>
Source§impl<T: Supervisor> Eliminated<ClientSession<T>> for Router<T>
impl<T: Supervisor> Eliminated<ClientSession<T>> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: IdOf<ClientSession<T>>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: IdOf<ClientSession<T>>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the
Actor finished.Source§impl<T: Supervisor> Eliminated<ProviderSession> for Router<T>
impl<T: Supervisor> Eliminated<ProviderSession> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: IdOf<ProviderSession>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: IdOf<ProviderSession>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the
Actor finished.Source§impl<T: Supervisor> Eliminated<Router<T>> for Node<T>
impl<T: Supervisor> Eliminated<Router<T>> for Node<T>
Source§impl<T: Supervisor> InteractionHandler<Req<Index>> for Router<T>
impl<T: Supervisor> InteractionHandler<Req<Index>> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
__arg1: Req<Index>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
__arg1: Req<Index>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T: Supervisor> InteractionHandler<Req<IndexToUi>> for Router<T>
impl<T: Supervisor> InteractionHandler<Req<IndexToUi>> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
__arg1: Req<IndexToUi>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
__arg1: Req<IndexToUi>,
_ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T: Supervisor> InterruptedBy<Node<T>> for Router<T>
impl<T: Supervisor> InterruptedBy<Node<T>> for Router<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the
Actor terminated by another actor. Read moreSource§impl<T: Supervisor> InterruptedBy<Router<T>> for ClientSession<T>
impl<T: Supervisor> InterruptedBy<Router<T>> for ClientSession<T>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the
Actor terminated by another actor. Read moreSource§impl<T: Supervisor> InterruptedBy<Router<T>> for ProviderSession
impl<T: Supervisor> InterruptedBy<Router<T>> for ProviderSession
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called when the
Actor terminated by another actor. Read moreSource§impl<T: Supervisor> StartedBy<Router<T>> for ClientSession<T>
impl<T: Supervisor> StartedBy<Router<T>> for ClientSession<T>
Source§impl<T: Supervisor> StartedBy<Router<T>> for ProviderSession
impl<T: Supervisor> StartedBy<Router<T>> for ProviderSession
Auto Trait Implementations§
impl<T> Freeze for Router<T>
impl<T> !RefUnwindSafe for Router<T>
impl<T> Send for Router<T>
impl<T> Sync for Router<T>
impl<T> Unpin for Router<T>
impl<T> !UnwindSafe for Router<T>
Blanket Implementations§
Source§impl<T, I> ActionHandler<Interact<I>> for Twhere
T: InteractionHandler<I>,
I: Interaction,
impl<T, I> ActionHandler<Interact<I>> for Twhere
T: InteractionHandler<I>,
I: Interaction,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Interact<I>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
input: Interact<I>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, S> InstantActionHandler<Awake<S>> for T
impl<T, S> InstantActionHandler<Awake<S>> for T
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Awake<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Awake<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T, C> InstantActionHandler<Done<C>> for Twhere
T: Eliminated<C>,
C: Actor,
impl<T, C> InstantActionHandler<Done<C>> for Twhere
T: Eliminated<C>,
C: Actor,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
done: Done<C>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
done: Done<C>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl<T, S> InstantActionHandler<Interrupt<S>> for Twhere
T: InterruptedBy<S>,
S: Actor,
impl<T, S> InstantActionHandler<Interrupt<S>> for Twhere
T: InterruptedBy<S>,
S: Actor,
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Interrupt<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_input: Interrupt<S>,
ctx: &'life1 mut Context<T>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
Asyncronous method that receives incoming message.