Function mock_paver::hooks::return_error
source · pub fn return_error<F>(callback: F) -> ReturnError<F>
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.