logo
pub struct EntityMessageDispatcher<'message> { /* private fields */ }
Expand description

The EntityMessageDispatcher is a hub for managing messages to / from the host

Use it to perform various requests and assign closures that will be called when a result is received. You need to call EntityMessageDispatcher::update somewhere in your update routine. This will in turn check if any results have been received and call the corresponding closures.

Implementations

Remove all listenerers

Registers a request into this EntityMessageDispatcher and puts the outgoing message into the global queue.

Registers a request into this EntityMessageDispatcher and puts the outgoing message into a queue of your choice.

Registers an animation into this EntityMessageDispatcher and puts the outgoing message into the global queue.

Registers an animation into this EntityMessageDispatcher and puts the outgoing message into a queue of your choice.

Registers a callback for listening on collisions

Registers a callback for listening on triggers

This needs to be executed to process replies and invoke closures.

The function is responsible for polling EntityMessenger to see if any reply, corresponding to the requests that have been performed on this EntityMessageDispatcher, is received.

Get the global EntityMessageDispatcher.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.