[−][src]Struct ghost_actor::example::MyActorSender
A cheaply clone-able handle to control a ghost_actor task.
Implementations
impl MyActorSender
[src]
pub async fn ghost_actor_spawn<C, I, H>(
factory: GhostActorSpawn<MyActorInternalSender<I>, H, MyError>
) -> MyActorResult<(Self, GhostActorDriver)> where
C: 'static + Send,
I: 'static + Send,
H: MyActorHandler<C, I>,
[src]
factory: GhostActorSpawn<MyActorInternalSender<I>, H, MyError>
) -> MyActorResult<(Self, GhostActorDriver)> where
C: 'static + Send,
I: 'static + Send,
H: MyActorHandler<C, I>,
Library users will likely not use this function, look to the implementation of your actor for a simpler spawn. GhostActor implementors will use this to spawn handler tasks.
pub async fn test_message<'_>(
&'_ mut self,
input: String
) -> MyActorResult<String>
[src]
&'_ mut self,
input: String
) -> MyActorResult<String>
A test message, sends a String, receives a String.
pub async fn add_one<'_>(&'_ mut self, input: u32) -> MyActorResult<u32>
[src]
A test function, output adds 1 to input.
pub async fn req_not_debug<'_>(
&'_ mut self,
input: NotDebug
) -> MyActorResult<()>
[src]
&'_ mut self,
input: NotDebug
) -> MyActorResult<()>
Ensure we can take params that don't implement Deug
pub async fn funky_internal<'_>(
&'_ mut self,
input: String
) -> MyActorResult<String>
[src]
&'_ mut self,
input: String
) -> MyActorResult<String>
Makes an internal_sender request from outside. In reality, you'd never need a command like this.
pub async fn funky_stop<'_>(&'_ mut self) -> MyActorResult<()>
[src]
Calls internal ghost_actor_shutdown_immediate() command. In reality, you'd never need a command like this.
pub fn ghost_actor_custom<C>(&mut self) -> MyActorHelper<C> where
C: 'static + Send,
[src]
C: 'static + Send,
Send a custom message along to the ghost actor.
pub async fn ghost_actor_shutdown<'_>(&'_ mut self) -> MyActorResult<()>
[src]
Shutdown the actor.
Trait Implementations
impl Clone for MyActorSender
[src]
fn clone(&self) -> MyActorSender
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for MyActorSender
impl Send for MyActorSender
impl Sync for MyActorSender
impl Unpin for MyActorSender
impl !UnwindSafe for MyActorSender
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>,