pub struct InMemoryBehaviorRegistry { /* private fields */ }Implementations§
Source§impl InMemoryBehaviorRegistry
impl InMemoryBehaviorRegistry
pub fn new() -> Self
pub fn register( &mut self, behavior: Arc<dyn AgentBehavior>, ) -> Result<(), BehaviorRegistryError>
pub fn register_named( &mut self, id: impl Into<String>, behavior: Arc<dyn AgentBehavior>, ) -> Result<(), BehaviorRegistryError>
pub fn extend_named( &mut self, behaviors: HashMap<String, Arc<dyn AgentBehavior>>, ) -> Result<(), BehaviorRegistryError>
pub fn extend_registry( &mut self, other: &dyn BehaviorRegistry, ) -> Result<(), BehaviorRegistryError>
Trait Implementations§
Source§impl Clone for InMemoryBehaviorRegistry
impl Clone for InMemoryBehaviorRegistry
Source§fn clone(&self) -> InMemoryBehaviorRegistry
fn clone(&self) -> InMemoryBehaviorRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryBehaviorRegistry
impl Debug for InMemoryBehaviorRegistry
Source§impl Default for InMemoryBehaviorRegistry
impl Default for InMemoryBehaviorRegistry
Source§fn default() -> InMemoryBehaviorRegistry
fn default() -> InMemoryBehaviorRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryBehaviorRegistry
impl !RefUnwindSafe for InMemoryBehaviorRegistry
impl Send for InMemoryBehaviorRegistry
impl Sync for InMemoryBehaviorRegistry
impl Unpin for InMemoryBehaviorRegistry
impl !UnwindSafe for InMemoryBehaviorRegistry
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