pub struct ActorSystemBuilder { /* private fields */ }Implementations§
Source§impl ActorSystemBuilder
impl ActorSystemBuilder
pub fn new(name: impl Into<String>) -> Self
pub fn with_config(self, config: Config) -> Self
pub fn with_services<F>(self, f: F) -> Selfwhere
F: FnOnce(&ServiceContainer),
pub fn on_start<F>(self, f: F) -> Self
pub async fn build(self) -> Result<HostedActorSystem, Box<dyn Error>>
Auto Trait Implementations§
impl !RefUnwindSafe for ActorSystemBuilder
impl !Sync for ActorSystemBuilder
impl !UnwindSafe for ActorSystemBuilder
impl Freeze for ActorSystemBuilder
impl Send for ActorSystemBuilder
impl Unpin for ActorSystemBuilder
impl UnsafeUnpin for ActorSystemBuilder
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