pub trait Lifecycle: 'static + Sealed {
// Required methods
fn take(&mut self) -> LifecycleCallback;
fn restore(&mut self, callback: LifecycleCallback);
}Expand description
Required Methods§
Sourcefn take(&mut self) -> LifecycleCallback
fn take(&mut self) -> LifecycleCallback
Take the callback out, leaving a placeholder in its place.
Sourcefn restore(&mut self, callback: LifecycleCallback)
fn restore(&mut self, callback: LifecycleCallback)
Put a callback taken by Lifecycle::take back.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".