pub struct SingleThreadedRuntime {
pub id: RuntimeID,
/* private fields */
}Expand description
Single-threaded runtime implementation with internal event routing
Fields§
§id: RuntimeIDImplementations§
Trait Implementations§
Source§impl Debug for SingleThreadedRuntime
impl Debug for SingleThreadedRuntime
Source§impl Runtime for SingleThreadedRuntime
impl Runtime for SingleThreadedRuntime
fn id(&self) -> RuntimeID
fn publish_message<'life0, 'async_trait>(
&'life0 self,
message: String,
topic: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_message<'life0, 'async_trait>(
&'life0 self,
message: String,
agent_id: AgentID,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_agent<'life0, 'async_trait>(
&'life0 self,
agent: Arc<dyn RunnableAgent>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe<'life0, 'async_trait>(
&'life0 self,
agent_id: AgentID,
topic: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn take_event_receiver<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Option<ReceiverStream<Event>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !Freeze for SingleThreadedRuntime
impl !RefUnwindSafe for SingleThreadedRuntime
impl Send for SingleThreadedRuntime
impl Sync for SingleThreadedRuntime
impl Unpin for SingleThreadedRuntime
impl !UnwindSafe for SingleThreadedRuntime
Blanket Implementations§
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