pub struct DispatchingPath<'a, 'b> { /* private fields */ }Expand description
A temporary combination of an ActorPath and something that can dispatch stuff.
This can be used when you want to use a different actor path than the one of the current component for a tell but still need to use the component’s dispatcher for the message. This is useful for forwarding components, for example, when trying to preserve the original sender.
See also using_dispatcher.
Trait Implementations§
Source§impl ActorPathFactory for DispatchingPath<'_, '_>
impl ActorPathFactory for DispatchingPath<'_, '_>
Source§fn actor_path(&self) -> ActorPath
fn actor_path(&self) -> ActorPath
Returns the associated actor path.
Source§impl Dispatching for DispatchingPath<'_, '_>
impl Dispatching for DispatchingPath<'_, '_>
Source§fn dispatcher_ref(&self) -> ActorRefStrong<DispatchEnvelope>
fn dispatcher_ref(&self) -> ActorRefStrong<DispatchEnvelope>
Returns the associated dispatcher reference.
Auto Trait Implementations§
impl<'a, 'b> Freeze for DispatchingPath<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for DispatchingPath<'a, 'b>
impl<'a, 'b> !Send for DispatchingPath<'a, 'b>
impl<'a, 'b> !Sync for DispatchingPath<'a, 'b>
impl<'a, 'b> Unpin for DispatchingPath<'a, 'b>
impl<'a, 'b> UnsafeUnpin for DispatchingPath<'a, 'b>
impl<'a, 'b> !UnwindSafe for DispatchingPath<'a, '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