pub struct ProviderSession { /* private fields */ }Implementations§
Source§impl ProviderSession
impl ProviderSession
pub fn new(handler: WsHandler<ProviderProtocol>, registry: Registry) -> Self
Trait Implementations§
Source§impl ActionHandler<ActionOnPath> for ProviderSession
impl ActionHandler<ActionOnPath> for ProviderSession
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: ActionOnPath,
_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,
msg: ActionOnPath,
_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 ActionHandler<WsIncoming<WideEnvelope<ProviderProtocol, ProviderToServer>>> for ProviderSession
impl ActionHandler<WsIncoming<WideEnvelope<ProviderProtocol, ProviderToServer>>> for ProviderSession
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: WsIncoming<WideEnvelope<ProviderProtocol, ProviderToServer>>,
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,
msg: WsIncoming<WideEnvelope<ProviderProtocol, ProviderToServer>>,
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 Actor for ProviderSession
impl Actor for ProviderSession
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 InteractionHandler<SubscribeToPath> for ProviderSession
impl InteractionHandler<SubscribeToPath> for ProviderSession
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: SubscribeToPath,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<SubscriptionLink, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: SubscribeToPath,
ctx: &'life1 mut Context<Self>,
) -> Pin<Box<dyn Future<Output = Result<SubscriptionLink, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asyncronous method that receives incoming message.
Source§impl InteractionHandler<UnsubscribeFromPath> for ProviderSession
impl InteractionHandler<UnsubscribeFromPath> for ProviderSession
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: UnsubscribeFromPath,
_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,
msg: UnsubscribeFromPath,
_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> 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 ProviderSession
impl<T: Supervisor> StartedBy<Router<T>> for ProviderSession
Source§impl TaskEliminated<WsProcessor<ProviderProtocol, ProviderSession>, ()> for ProviderSession
impl TaskEliminated<WsProcessor<ProviderProtocol, ProviderSession>, ()> for ProviderSession
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_id: IdOf<WsProcessor<ProviderProtocol, Self>>,
_tag: (),
_result: Result<TermReason, TaskError>,
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<WsProcessor<ProviderProtocol, Self>>,
_tag: (),
_result: Result<TermReason, TaskError>,
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
Task finished.Auto Trait Implementations§
impl !Freeze for ProviderSession
impl !RefUnwindSafe for ProviderSession
impl Send for ProviderSession
impl !Sync for ProviderSession
impl Unpin for ProviderSession
impl UnsafeUnpin for ProviderSession
impl !UnwindSafe for ProviderSession
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, 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.
Source§impl<T, C, M> InstantActionHandler<TaskDone<C, M>> for T
impl<T, C, M> InstantActionHandler<TaskDone<C, M>> for T
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
done: TaskDone<C, M>,
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: TaskDone<C, M>,
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.