Struct perseus::plugins::FunctionalPluginExportActions
source · pub struct FunctionalPluginExportActions {
pub before_export: FunctionalPluginAction<(), ()>,
pub after_successful_build: FunctionalPluginAction<(), ()>,
pub after_failed_build: FunctionalPluginAction<Arc<Error>, ()>,
pub after_failed_export: FunctionalPluginAction<Arc<Error>, ()>,
pub after_failed_static_copy: FunctionalPluginAction<Arc<Error>, ()>,
pub after_failed_static_alias_dir_copy: FunctionalPluginAction<Arc<Error>, ()>,
pub after_failed_nested_static_alias_dir_creation: FunctionalPluginAction<Arc<Error>, ()>,
pub after_failed_static_alias_file_copy: FunctionalPluginAction<Arc<Error>, ()>,
pub after_successful_export: FunctionalPluginAction<(), ()>,
}
Expand description
Functional actions that pertain to the export process.
Fields§
§before_export: FunctionalPluginAction<(), ()>
Runs before the export process.
after_successful_build: FunctionalPluginAction<(), ()>
Runs after the build stage in the export process if it completes successfully.
after_failed_build: FunctionalPluginAction<Arc<Error>, ()>
Runs after the build stage in the export process if it fails.
after_failed_export: FunctionalPluginAction<Arc<Error>, ()>
Runs after the export process if it fails.
after_failed_static_copy: FunctionalPluginAction<Arc<Error>, ()>
Runs if copying the static directory failed.
after_failed_static_alias_dir_copy: FunctionalPluginAction<Arc<Error>, ()>
Runs if copying a static alias that was a directory failed.
after_failed_nested_static_alias_dir_creation: FunctionalPluginAction<Arc<Error>, ()>
Runs if creating the directory structure for a nested static alias failed in exporting.
after_failed_static_alias_file_copy: FunctionalPluginAction<Arc<Error>, ()>
Runs if copying a static alias that was a file failed. The argument to this is a tuple of the from and to locations of the copy, along with the error.
after_successful_export: FunctionalPluginAction<(), ()>
Runs after the export process if it completes successfully.
Trait Implementations§
source§impl Default for FunctionalPluginExportActions
impl Default for FunctionalPluginExportActions
source§fn default() -> FunctionalPluginExportActions
fn default() -> FunctionalPluginExportActions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FunctionalPluginExportActions
impl Send for FunctionalPluginExportActions
impl Sync for FunctionalPluginExportActions
impl Unpin for FunctionalPluginExportActions
impl !UnwindSafe for FunctionalPluginExportActions
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