pub struct ActorInit<B: Behavior> {
pub behavior: Builder<B>,
pub can_send_to: HashSet<ActorId>,
pub can_shut_down: HashSet<ActorId>,
pub has_logger: bool,
}Expand description
Everything an Episode needs to build one actor: how
it behaves and whom it may reach.
Fields§
§behavior: Builder<B>Builds the behavior once its Context exists, which is when the
episode has opened every actor’s channels.
can_send_to: HashSet<ActorId>The actors this one may send to and request from.
can_shut_down: HashSet<ActorId>The actors this one may stop.
has_logger: boolWhether this actor gets a copy of the episode’s logger.
Auto Trait Implementations§
impl<B> !RefUnwindSafe for ActorInit<B>
impl<B> !Sync for ActorInit<B>
impl<B> !UnwindSafe for ActorInit<B>
impl<B> Freeze for ActorInit<B>
impl<B> Send for ActorInit<B>
impl<B> Unpin for ActorInit<B>
impl<B> UnsafeUnpin for ActorInit<B>
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