pub trait SuspendBlockerProxyInterface: Send + Sync {
type BeforeSuspendResponseFut: Future<Output = Result<(), Error>> + Send;
type AfterResumeResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn before_suspend(&self) -> Self::BeforeSuspendResponseFut;
fn after_resume(&self) -> Self::AfterResumeResponseFut;
}Required Associated Types§
type BeforeSuspendResponseFut: Future<Output = Result<(), Error>> + Send
type AfterResumeResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn before_suspend(&self) -> Self::BeforeSuspendResponseFut
fn after_resume(&self) -> Self::AfterResumeResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".