pub trait GlobalAfterHook:
Send
+ Sync
+ 'static {
// Required method
fn after(
&self,
context: &AuthContext,
request: &ApiRequest,
response: ApiResponse,
method: &Method,
path: &str,
) -> Result<ApiResponse, RustAuthError>;
}Expand description
Runs after any endpoint handler (before plugins’ onResponse).
Required Methods§
fn after( &self, context: &AuthContext, request: &ApiRequest, response: ApiResponse, method: &Method, path: &str, ) -> Result<ApiResponse, RustAuthError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".