pub struct EmitWaiter { /* private fields */ }Expand description
Future returned by HookEventBroadcaster::emit_and_wait. Holds
the receiver plus a hook back to the broker so it can clean up the
pending slot if the future is dropped before the reply lands.
Implementations§
Source§impl EmitWaiter
impl EmitWaiter
Sourcepub async fn wait(self) -> Option<HookResponse>
pub async fn wait(self) -> Option<HookResponse>
Resolve the waiter, returning Some on a fresh reply and
None on timeout or hook crash. Drops the broker’s pending
slot in either path.
Auto Trait Implementations§
impl Freeze for EmitWaiter
impl !RefUnwindSafe for EmitWaiter
impl Send for EmitWaiter
impl Sync for EmitWaiter
impl Unpin for EmitWaiter
impl UnsafeUnpin for EmitWaiter
impl !UnwindSafe for EmitWaiter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request