Struct sc2::observer::EventAck[][src]

pub struct EventAck { /* fields omitted */ }

Notify the coordinator that we are done with this event.

This is simply a wrapper around a oneshot to simplify the acknowledgement. It mainly exists because of the generics for oneshot errors, but adds some clarity for its purpose.

Methods

impl EventAck
[src]

Wrap the underlying oneshot for an EventAck

There may be external use-cases for creating EventAcks such as dispatching an event to a number of subscribers and then waiting until they are done using it by joining all of the oneshot receivers.

Send a signal indicating that the user is done handling this event.

Trait Implementations

impl Debug for EventAck
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for EventAck

impl !Sync for EventAck