[−][src]Struct ghost_actor::actor_builder::GhostActorChannelFactory
Allows attaching new GhostEvent channels to a GhostActor task.
Implementations
impl<H: GhostControlHandler> GhostActorChannelFactory<H>
[src]
pub fn attach_receiver<E, R>(&self, receiver: R) -> GhostFuture<()> where
E: GhostEvent + GhostDispatch<H>,
H: GhostControlHandler + GhostHandler<E>,
R: GhostChannelReceiver<E>,
[src]
E: GhostEvent + GhostDispatch<H>,
H: GhostControlHandler + GhostHandler<E>,
R: GhostChannelReceiver<E>,
Attach an event receiver to this running (or pending build) GhostActor.
You can attach anything that implements
GhostChannelRecevier<E: GhostEvent>
.
pub fn create_channel<E>(&self) -> GhostFuture<GhostSender<E>> where
E: GhostEvent + GhostDispatch<H>,
H: GhostControlHandler + GhostHandler<E>,
[src]
E: GhostEvent + GhostDispatch<H>,
H: GhostControlHandler + GhostHandler<E>,
Attach a new event sender to a running (or pending build) GhostActor. Note - you should only call this once for each GhostEvent type. If you want multiple senders for a GhostEvent, clone the resulting Sender.
Trait Implementations
impl<H: GhostControlHandler> Clone for GhostActorChannelFactory<H>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<H> !RefUnwindSafe for GhostActorChannelFactory<H>
impl<H> Send for GhostActorChannelFactory<H>
impl<H> Sync for GhostActorChannelFactory<H>
impl<H> Unpin for GhostActorChannelFactory<H>
impl<H> !UnwindSafe for GhostActorChannelFactory<H>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,