pub struct AgentConfig { /* private fields */ }Expand description
Configuration for creating an actor.
This struct holds the necessary information to configure an actor, including its ERN (Entity Resource Name), broker, and parent reference.
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn new(
ern: Ern,
parent: Option<AgentHandle>,
broker: Option<AgentHandle>,
) -> Result<AgentConfig>
pub fn new( ern: Ern, parent: Option<AgentHandle>, broker: Option<AgentHandle>, ) -> Result<AgentConfig>
Sourcepub fn new_with_name(name: impl Into<String>) -> Result<AgentConfig>
pub fn new_with_name(name: impl Into<String>) -> Result<AgentConfig>
Creates a new config with an ERN root with the provided name.
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a copy 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 AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§fn default() -> AgentConfig
fn default() -> AgentConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AgentConfig
impl !RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnwindSafe for AgentConfig
Blanket Implementations§
Source§impl<T> ActonMessage for T
impl<T> ActonMessage for T
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