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
sourceimpl Default for FunctionalPluginExportErrorPageActions
impl Default for FunctionalPluginExportErrorPageActions
sourcefn default() -> FunctionalPluginExportErrorPageActions
fn default() -> FunctionalPluginExportErrorPageActions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FunctionalPluginExportErrorPageActions
impl Send for FunctionalPluginExportErrorPageActions
impl !Sync for FunctionalPluginExportErrorPageActions
impl Unpin for FunctionalPluginExportErrorPageActions
impl !UnwindSafe for FunctionalPluginExportErrorPageActions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more