pub struct Animation { /* private fields */ }
Expand description
Represents an ongoing animation
Use it to request an animation and poll for a reply.
Implementations
sourceimpl Animation
impl Animation
sourcepub fn enqueue_request_in_global_queue(request: &AnimationRequest) -> Self
pub fn enqueue_request_in_global_queue(request: &AnimationRequest) -> Self
Request an animation
Will put it in the global queue to be executed later
when running EntityMessenger::get().process_events()
sourcepub fn enqueue_request(
request: &AnimationRequest,
queue: &mut EntityMessageQueue
) -> Self
pub fn enqueue_request(
request: &AnimationRequest,
queue: &mut EntityMessageQueue
) -> Self
Request an animation
Will put it in a queue of your choice to be executed on request.
sourcepub fn result(&self) -> MessageResponse<&AnimationReplyType>
pub fn result(&self) -> MessageResponse<&AnimationReplyType>
Query the state of this animation.
Auto Trait Implementations
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnwindSafe for Animation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more