Skip to main content

SuspendBlockerProxyInterface

Trait SuspendBlockerProxyInterface 

Source
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§

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§