Trait embedded_svc::utils::asyncify::Unblocker
source · pub trait Unblocker {
type UnblockFuture<'a, F, T>: Future<Output = T> + Send
where Self: 'a,
F: Send + 'a,
T: Send + 'a;
// Required method
fn unblock<'a, F, T>(&'a self, f: F) -> Self::UnblockFuture<'a, F, T>
where F: FnOnce() -> T + Send + 'a,
T: Send + 'a;
}
Required Associated Types§
type UnblockFuture<'a, F, T>: Future<Output = T> + Send where Self: 'a, F: Send + 'a, T: Send + 'a
Required Methods§
fn unblock<'a, F, T>(&'a self, f: F) -> Self::UnblockFuture<'a, F, T>
Object Safety§
This trait is not object safe.