[][src]Struct ducc::ExecSettings

pub struct ExecSettings {
    pub cancel_fn: Option<Box<dyn Fn() -> bool>>,
}

A list of one-time settings for JavaScript execution.

Fields

cancel_fn: Option<Box<dyn Fn() -> bool>>

An optional closure that returns true if the execution should be cancelled as soon as possible, or false if the execution should continue. This is useful for implementing an execution timeout. This function is only called during JavaScript execution, and will not be called while execution is within native Rust code.

Trait Implementations

impl Default for ExecSettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.