pub struct ColumboOptions {
pub panic_renderer: Option<fn(Box<dyn Any + Send>) -> Html>,
pub auto_cancel: Option<bool>,
pub include_script: Option<bool>,
}Expand description
Options for configuring columbo suspense.
Fields§
§panic_renderer: Option<fn(Box<dyn Any + Send>) -> Html>Renders a panic fallback given the panic object.
auto_cancel: Option<bool>Whether to automatically cancel suspended futures at the next await bound when the response is dropped. Defaults to false.
include_script: Option<bool>Whether to include the replacement script in the stream. If true, it will be included after the document and before the replacements. Defaults to true.
Trait Implementations§
Source§impl Clone for ColumboOptions
impl Clone for ColumboOptions
Source§fn clone(&self) -> ColumboOptions
fn clone(&self) -> ColumboOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumboOptions
impl Debug for ColumboOptions
Source§impl Default for ColumboOptions
impl Default for ColumboOptions
Source§fn default() -> ColumboOptions
fn default() -> ColumboOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColumboOptions
impl RefUnwindSafe for ColumboOptions
impl Send for ColumboOptions
impl Sync for ColumboOptions
impl Unpin for ColumboOptions
impl UnsafeUnpin for ColumboOptions
impl UnwindSafe for ColumboOptions
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