pub fn boot(&mut self, behavior: Box<dyn Behavior>) -> usize {
        let actor = Actor::new(behavior);
        self.actors.push(Rc::downgrade(&actor));
        let event = Event::new(&actor, Message::Empty);
        self.events.push_back(event);
        self.dispatch(1)  // dispatch bootstrap message
    }
/// Execute bootstrap `behavior` to initialize Config.
///
/// Returns the number of events enqueued.
Execute bootstrap `behavior` to initialize Config.
Returns the number of events enqueued.
Execute bootstrap ` behavior ` to initialize Config . Returns the number of events enqueued .
pub fn boot(&mut self, behavior: Box<dyn Behavior>) -> usize {
        let actor = Actor::new(behavior);
        self.actors.push(Rc::downgrade(&actor));
        let event = Event::new(&actor, Message::Empty);
        self.events.push_back(event);
        self.dispatch(1)  // dispatch bootstrap message
    }
pub fn boot ( & mut self , behavior : Box < dyn Behavior > ) -> usize { let actor = Actor :: new ( behavior ) ; self . actors . push ( Rc :: downgrade ( & actor ) ) ; let event = Event :: new ( & actor , Message :: Empty ) ; self . events . push_back ( event ) ; self . dispatch ( 1 ) // dispatch bootstrap message }
Execute bootstrap `behavior` to initialize Config.
Execute bootstrap ` behavior ` to initialize Config .
&mut self
behavior
Box<dyn Behavior>