pub struct Config {
pub frame: Waku,
pub budget: Option<usize>,
pub loader: Box<dyn Loader + Send>,
pub interrupt: Arc<AtomicBool>,
pub live: Option<Box<dyn Write + Send>>,
}Expand description
How a session is built.
Fields§
§frame: Waku§budget: Option<usize>Steps each request may take when it names no budget; None falls back
to the process’s configured max_steps (unbounded by default).
loader: Box<dyn Loader + Send>§interrupt: Arc<AtomicBool>Set from any thread to halt the running evaluation.
live: Option<Box<dyn Write + Send>>Write output through as it is produced instead of capturing it.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Config
impl !Sync for Config
impl !UnwindSafe for Config
impl Freeze for Config
impl Send for Config
impl Unpin for Config
impl UnsafeUnpin for Config
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