pub struct FunctionalPluginExportErrorPageActions {
    pub before_export_error_page: FunctionalPluginAction<(u16, String), ()>,
    pub after_successful_export_error_page: FunctionalPluginAction<(), ()>,
    pub after_failed_write: FunctionalPluginAction<(Error, String), ()>,
}
Expand description

Functional actions that pertain to the process of exporting an error page.

Fields

before_export_error_page: FunctionalPluginAction<(u16, String), ()>

Runs before the process of exporting an error page, providing the HTTP status code to be exported and the output filename (relative to the root of the project, not to .perseus/).

after_successful_export_error_page: FunctionalPluginAction<(), ()>

Runs after a error page was exported successfully.

after_failed_write: FunctionalPluginAction<(Error, String), ()>

Runs if writing to the output file failed. Error and filename are given.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.