pub struct SharedAgentFactory { /* private fields */ }Expand description
Thread-safe agent factory wrapper
Implementations§
Sourcepub fn new(config: SonaConfig) -> Self
pub fn new(config: SonaConfig) -> Self
Create a new shared factory
Sourcepub fn read(&self) -> RwLockReadGuard<'_, AgentFactory>
pub fn read(&self) -> RwLockReadGuard<'_, AgentFactory>
Get read access to factory
Sourcepub fn write(&self) -> RwLockWriteGuard<'_, AgentFactory>
pub fn write(&self) -> RwLockWriteGuard<'_, AgentFactory>
Get write access to factory
Trait Implementations§
Auto Trait Implementations§
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