Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DavidBM/acteur-rs
/ functions
Functions
169 in github.com/DavidBM/acteur-rs
⨍
Functions
169
◇
Types & classes
55
↓ 19 callers
Method
clone
(&self)
src/actors/manager.rs:233
↓ 16 callers
Method
clone
(&self)
src/services/manager.rs:278
↓ 8 callers
Method
send
(&mut self, message: M)
src/actors/proxy.rs:58
↓ 7 callers
Method
wait_until_stopped
Waits until all actors are stopped. If you call "system.stop()" this method will wait untill all actor have consumed all messages before returning.
src/facade.rs:237
↓ 6 callers
Method
is_empty
(&self)
src/actors/manager.rs:143
↓ 5 callers
Method
clone
(&self)
src/facade.rs:264
↓ 5 callers
Method
clone
(&self)
src/system_director.rs:129
↓ 5 callers
Method
clone
(&self)
src/services/director.rs:161
↓ 5 callers
Method
send
(&self, message: M)
src/services/director.rs:91
↓ 4 callers
Method
stop
Send an stop message to all actors in the system. Actors will process all the enqued messages before stop
src/facade.rs:213
↓ 3 callers
Method
deliver
(&mut self, manager: &mut ActorProxy<A>)
src/actors/envelope.rs:100
↓ 3 callers
Function
dispatch
( service: &'a Arc<S>, system_facade: &'a Arc<ServiceAssistant<S>>, mut envelope: Box<dyn ServiceE
src/services/manager.rs:243
↓ 3 callers
Method
dispatch
(&mut self, actor: &mut A, assistant: &ActorAssistant<A>)
src/actors/envelope.rs:49
↓ 3 callers
Method
send
( &self, actor_id: A::Id, message: M, )
src/actors/director.rs:78
↓ 2 callers
Method
clone
(&self)
src/actors/assistant.rs:194
↓ 2 callers
Method
dispatch
( &mut self, service: &Self::Service, system: &ServiceAssistant<Self::Service>, )
src/services/envelope.rs:43
↓ 2 callers
Method
end
(&self)
src/actors/manager.rs:76
↓ 2 callers
Method
is_ready_to_be_removed
A manager is ready to be removed only if there are no more messages pending to be delivered, has no active actors and it is flagged to be ended.
src/actors/manager.rs:111
↓ 2 callers
Method
register
(&self)
src/services/broker.rs:25
↓ 2 callers
Method
set_system
(&mut self, system_director: SystemDirector)
src/actors/director.rs:45
↓ 1 callers
Function
actor_loop
( id: A::Id, sender: Sender<ActorProxyCommand<A>>, receiver: Receiver<ActorProxyCommand<A>>, a
src/actors/proxy.rs:116
↓ 1 callers
Function
actor_manager_loop
( receiver: Receiver<ActorManagerProxyCommand<A>>, actors: Arc<DashMap<A::Id, ActorProxy<A>>>, act
src/actors/manager.rs:148
↓ 1 callers
Method
call
( &mut self, message: M, responder: Sender<<A as Respond<M>>::Response>, )
src/actors/proxy.rs:74
↓ 1 callers
Method
clone
(&self)
src/services/system_facade.rs:161
↓ 1 callers
Method
end
(&self)
src/services/manager.rs:145
↓ 1 callers
Method
end
(&self)
src/actors/proxy.rs:108
↓ 1 callers
Method
get_actor_id
(&self)
src/actors/envelope.rs:96
↓ 1 callers
Method
get_blocking_actor_entry
Returns the Entry of the actorProxy in the general HashMap, making not possible to send any messages until the Entry is droped.
src/actors/manager.rs:139
↓ 1 callers
Method
get_blocking_manager_entry
(&self, id: TypeId)
src/services/director.rs:151
↓ 1 callers
Method
get_blocking_manager_entry
(&self, id: TypeId)
src/actors/director.rs:168
↓ 1 callers
Method
get_inbox_length
(&self)
src/actors/proxy.rs:97
↓ 1 callers
Method
get_last_sent_message_time
(&self)
src/actors/proxy.rs:93
↓ 1 callers
Method
get_next_sender_index
(&self)
src/services/manager.rs:129
↓ 1 callers
Method
get_report
(&self)
src/actors/proxy.rs:101
↓ 1 callers
Method
get_sender
(&self)
src/services/manager.rs:120
↓ 1 callers
Method
get_sender_as_any
(&mut self)
src/services/manager.rs:260
↓ 1 callers
Method
get_sender_as_any
(&self)
src/actors/manager.rs:261
↓ 1 callers
Method
get_type_id
(&self)
src/actors/manager.rs:119
↓ 1 callers
Function
process_dispatch_all_command
( mut command: Box<dyn ManagerEnvelope<Actor = A>>, actors: &'a Arc<DashMap<A::Id, ActorProxy<A>>>, )
src/actors/manager.rs:223
↓ 1 callers
Function
process_dispatch_command
( mut command: Box<dyn ManagerEnvelope<Actor = A>>, actors: &'a Arc<DashMap<A::Id, ActorProxy<A>>>,
src/actors/manager.rs:190
↓ 1 callers
Function
process_end_actor_command
( actor_id: A::Id, actors: &'a Arc<DashMap<A::Id, ActorProxy<A>>>, )
src/actors/manager.rs:181
↓ 1 callers
Method
publish
Allows to publish messages for Services to receive. In order for the mesage to be received by a service, the service must register itself for that mes
src/facade.rs:247
↓ 1 callers
Method
publish_sync
Same as publish method, but sync version
src/facade.rs:252
↓ 1 callers
Method
send
(&mut self, message: M, system_director: &ServicesDirector)
src/services/broker.rs:73
↓ 1 callers
Function
service_loop
( receiver: Receiver<ServiceManagerCommand<S>>, sender: Sender<ServiceManagerCommand<S>>, service:
src/services/manager.rs:157
↓ 1 callers
Method
signal_actor_removed
(&self)
src/actors/manager.rs:84
↓ 1 callers
Method
signal_manager_removed
(&self)
src/services/director.rs:134
↓ 1 callers
Method
signal_manager_removed
(&self)
src/actors/director.rs:151
↓ 1 callers
Function
start
()
examples/count_with_generic_type.rs:12
↓ 1 callers
Method
stop
(&self)
src/services/director.rs:143
↓ 1 callers
Method
stop
Enqueues a end command in the Actor messages queue. The actor will consume all mesages before ending. Keep in mind that event is an actor is stopped,
src/actors/assistant.rs:171
↓ 1 callers
Method
stop_system
Send an stop message to all actors in the system. Actors will process all the enqued messages before stop
src/actors/assistant.rs:184
Method
activate
(id: Self::Id, _: &ActorAssistant<Self>)
examples/count_with_generic_type.rs:46
Method
activate
(id: Self::Id, _: &ActorAssistant<Self>)
examples/respond_to_message.rs:14
Method
activate
(_: Self::Id, _: &ActorAssistant<Self>)
examples/actor_without_id.rs:26
Method
activate
(_: Self::Id, _: &ActorAssistant<Self>)
examples/basic.rs:13
Method
activate
(id: Self::Id, _: &ActorAssistant<Self>)
examples/http/src/main.rs:14
Method
call
TODO: Create a proper return type without &str
src/services/director.rs:102
Method
call
( &self, actor_id: A::Id, message: M, // TODO: Create a proper return type wit
src/actors/director.rs:105
Method
call_actor
As send_to_actor method, it sends a message to an actor with an ID but this one wait for a response from the actor. This method will execute the [Res
src/facade.rs:147
Method
call_actor
( &self, actor_id: A::Id, message: M, )
src/system_director.rs:82
Method
call_actor
Sends a message to the Actor with the specified Id and waits the actor's response . If the Actor is not loaded, it will load the actor before, calling
src/services/system_facade.rs:114
Method
call_actor
Sends a message to the Actor with the specified Id and waits the actor's response . If the Actor is not loaded, it will load the actor before, calling
src/actors/assistant.rs:143
Method
call_actor_sync
Same as `call_actor` method, but sync version.
src/facade.rs:158
Method
call_service
As send_to_service method, it sends a message to a Service but this one wait for a response from the actor. This method will execute the [Serve::hand
src/facade.rs:196
Method
call_service
( &self, message: M, )
src/system_director.rs:97
Method
call_service
Sends a message to a Service and waits for its response. If the Service is not loaded, it will load the service before, calling its method `initialize
src/services/system_facade.rs:135
Method
call_service
Sends a message to a Service and waits for its response. If the Service is not loaded, it will load the service before, calling its method `initialize
src/actors/assistant.rs:162
Method
call_service_sync
Same as `call_service` method, but sync version.
src/facade.rs:204
Method
create_manager
(&self)
src/services/director.rs:123
Method
create_manager
(&self)
src/actors/director.rs:136
Method
deactivate
This method will be called when the framework decided to unload the actor. The concrete algorithms to decide that can change in the future. As for now
src/actors/actor.rs:60
Method
deactivate
(&mut self)
examples/count_with_generic_type.rs:54
Method
deactivate
(&mut self)
examples/respond_to_message.rs:22
Method
default
()
src/facade.rs:26
Method
default
()
src/services/service.rs:94
Method
dispatch_service
(&mut self, service: &S, system: &ServiceAssistant<S>)
src/services/envelope.rs:31
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/facade.rs:258
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/services/system_facade.rs:171
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/services/broker.rs:93
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/actors/assistant.rs:204
Method
get_id
Returns the Actor's Id defined by the [`Actor`](./trait.Actor.html) Trait
src/actors/assistant.rs:178
Method
get_mamager
(&self)
src/services/director.rs:61
Method
get_or_create_manager_sender
Ensures that there is a manager for that type and returns a sender to it
src/services/director.rs:76
Method
get_or_create_manager_sender
Ensures that there is a manager for that type and returns a sender to it
src/actors/director.rs:56
Method
get_sender
(&self)
src/actors/manager.rs:115
Method
get_statistics
(&self)
src/facade.rs:241
Method
get_statistics
(&self)
src/system_director.rs:119
Method
get_statistics
TODO: Implement
src/services/manager.rs:271
Method
get_statistics
(&self)
src/actors/director.rs:172
Method
get_statistics
(&self)
src/actors/manager.rs:123
Method
get_type_id
(&self)
src/services/manager.rs:263
Method
handle
(&mut self, message: TestMessage, assistant: &ActorAssistant<TestActor<T>>)
examples/count_with_generic_type.rs:64
Method
handle
(&self, message: EmployeeSalaryChange, _: &ServiceAssistant<Self>)
examples/stateless_service.rs:23
Method
handle
(&self, message: EmployeeHired, _: &ServiceAssistant<Self>)
examples/statefull_service.rs:31
Method
handle
(&self, message: EmployeeSalaryChange, _: &ServiceAssistant<Self>)
examples/publish_subscribe.rs:30
Method
handle
( &mut self, message: SalaryChanged, assistant: &ActorAssistant<Employee>, )
examples/respond_to_message.rs:34
Method
handle
(&mut self, message: SalaryChanged, _: &ActorAssistant<Employee>)
examples/actor_without_id.rs:38
Method
handle
(&mut self, message: SalaryChanged, _: &ActorAssistant<Employee>)
examples/basic.rs:25
Method
handle
If your struct can be cloned, you can respond with yourself.
examples/http/src/main.rs:33
next →
1–100 of 169, ranked by callers