pub struct BoxedProps {
pub spawn: Arc<dyn Fn() -> Arc<dyn Any + Send + Sync> + Send + Sync>,
pub dispatcher: Option<String>,
pub mailbox: Option<String>,
pub deploy: Deploy,
}Expand description
Type-erased props — used when an actor needs to hold props of an
unknown A (e.g. remote deployment, routers).
Fields§
§spawn: Arc<dyn Fn() -> Arc<dyn Any + Send + Sync> + Send + Sync>§dispatcher: Option<String>§mailbox: Option<String>§deploy: DeployTrait Implementations§
Source§impl Clone for BoxedProps
impl Clone for BoxedProps
Source§fn clone(&self) -> BoxedProps
fn clone(&self) -> BoxedProps
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BoxedProps
impl !RefUnwindSafe for BoxedProps
impl Send for BoxedProps
impl Sync for BoxedProps
impl Unpin for BoxedProps
impl UnsafeUnpin for BoxedProps
impl !UnwindSafe for BoxedProps
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