pub trait Acknowledgement:
Clone
+ Send
+ Sync
+ Debug
+ 'static {
type Waiter: Future<Output = Result<(), Self::Error>> + Send + Sync + Unpin + 'static;
type Error: Debug + Send + Sync + 'static;
// Required methods
fn handle() -> (Self, Self::Waiter);
fn acknowledge(self);
}Expand description
A mechanism for acknowledging the completion of a task.
Required Associated Types§
Required Methods§
Sourcefn handle() -> (Self, Self::Waiter)
fn handle() -> (Self, Self::Waiter)
Create a new acknowledgement handle paired with the waiter.
Sourcefn acknowledge(self)
fn acknowledge(self)
Fulfill the acknowledgement.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.