pub struct LocalAgentSystem<C, S, H>{ /* private fields */ }Expand description
A built local system: an AgentSystem plus the receiving end of its
internal input queue.
Call start to use the built-in
ThreadBuilder and ThreadHandle
convenience API. Call start_with_observer
when the embedding owns event fan-out and thread identity.
Implementations§
Source§impl<C, S, H> LocalAgentSystem<C, S, H>
impl<C, S, H> LocalAgentSystem<C, S, H>
Sourcepub fn sender(&self) -> ChannelSender
pub fn sender(&self) -> ChannelSender
The system’s InputSender (for callback servers and external
injectors).
Source§impl<C, S, H> LocalAgentSystem<C, S, H>
impl<C, S, H> LocalAgentSystem<C, S, H>
Sourcepub fn start(self) -> LaunchingSystem<C, S, H>
pub fn start(self) -> LaunchingSystem<C, S, H>
Run the system with the built-in thread-builder API: create threads
through LaunchingSystem::thread_builder, and reattach to existing
threads with LaunchingSystem::thread_handle.
Source§impl<C, S, H> LocalAgentSystem<C, S, H>
impl<C, S, H> LocalAgentSystem<C, S, H>
Sourcepub fn start_with_observer<O, F>(
self,
make_observer: F,
) -> RunningSystem<O::SubscribeRequest>
pub fn start_with_observer<O, F>( self, make_observer: F, ) -> RunningSystem<O::SubscribeRequest>
Run the system with a custom ThreadObserver. Use this lower-level
path when the embedding owns event fan-out and thread identity.
make_observer creates the observer for each thread driver as it
spawns. Drivers are spawned on demand when a thread receives its
first message and respawned when an idle thread receives another; the
same thread never has two drivers.