Struct rmp_ipc::stream_emitter::EmitMetadata [−][src]
pub struct EmitMetadata { /* fields omitted */ }
Expand description
A metadata object returned after emitting an event. This object can be used to wait for a response to an event.
Implementations
impl EmitMetadata
[src]
impl EmitMetadata
[src]pub fn message_id(&self) -> u64
[src]
pub fn message_id(&self) -> u64
[src]The ID of the emitted message
pub async fn await_reply(&self, ctx: &Context) -> Result<Event>
[src]
pub async fn await_reply(&self, ctx: &Context) -> Result<Event>
[src]Waits for a reply to the given message.