Struct WebhookReservationWaiter
pub struct WebhookReservationWaiter { /* private fields */ }Expand description
Wait handle returned to a request that meets an in-flight owner.
Implementations§
Source§impl WebhookReservationWaiter
impl WebhookReservationWaiter
Sourcepub fn new(status: Receiver<WebhookReservationStatus>) -> Self
pub fn new(status: Receiver<WebhookReservationStatus>) -> Self
Wrap the gateway store’s reservation watch channel.
Sourcepub async fn wait(&mut self) -> WebhookReservationStatus
pub async fn wait(&mut self) -> WebhookReservationStatus
Wait until the owner commits or rolls back.
A dropped sender is treated as rollback: no successful owner remains to justify acknowledging the duplicate.
Auto Trait Implementations§
impl Freeze for WebhookReservationWaiter
impl RefUnwindSafe for WebhookReservationWaiter
impl Send for WebhookReservationWaiter
impl Sync for WebhookReservationWaiter
impl Unpin for WebhookReservationWaiter
impl UnsafeUnpin for WebhookReservationWaiter
impl UnwindSafe for WebhookReservationWaiter
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