mock_paver::hooks

Function return_error

Source
pub fn return_error<F>(callback: F) -> ReturnError<F>
where F: Fn(&PaverEvent) -> Status,
Expand description

A Hook for the specific case where you want to return an error.

If the callback returns Status::OK, the Hook will pass the request off to the next Hook. Responds to both BootManagerRequests and DataSinkRequests.