pub trait AgentPort: Send + Sync {
// Required methods
fn dispatch(
&self,
command: CommandEnvelope,
) -> Result<(), PortDispatchError>;
fn snapshot(&self) -> Arc<ControlSnapshot> ⓘ;
fn subscribe(&self, capacity: usize) -> EventSubscription;
}Required Methods§
fn dispatch(&self, command: CommandEnvelope) -> Result<(), PortDispatchError>
fn snapshot(&self) -> Arc<ControlSnapshot> ⓘ
fn subscribe(&self, capacity: usize) -> EventSubscription
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".