pub struct LifecycleContext<'call> { /* private fields */ }Expand description
Lifecycle callbacks cannot poll user cancellation: xlAbort is exposed
only to the verified worksheet, thread-safe, and macro contexts.
ⓘ
use excel_api::LifecycleContext;
fn cannot_poll(context: &LifecycleContext<'_>) {
let _ = context.is_cancellation_requested();
}Implementations§
Source§impl LifecycleContext<'_>
impl LifecycleContext<'_>
Sourcepub fn drain_dispatcher(&self) -> DispatchDrainReport
pub fn drain_dispatcher(&self) -> DispatchDrainReport
Drains one bounded batch containing only lifecycle-compatible or pure work. Runtime close does not call this; close retires queued work instead.
Trait Implementations§
Auto Trait Implementations§
impl<'call> !RefUnwindSafe for LifecycleContext<'call>
impl<'call> !UnwindSafe for LifecycleContext<'call>
impl<'call> Freeze for LifecycleContext<'call>
impl<'call> Send for LifecycleContext<'call>
impl<'call> Sync for LifecycleContext<'call>
impl<'call> Unpin for LifecycleContext<'call>
impl<'call> UnsafeUnpin for LifecycleContext<'call>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more