Skip to main content

commit_hook

Function commit_hook 

Source
pub fn commit_hook() -> Result<()>
Expand description

Commit all registered hooks.

§Returns

Ok(()) if all hooks were successfully committed, or an io::Error if any hook failed.

§Notes

  • This function is thread-safe.
  • The return value indicates whether all hooks are successfully committed. You can determine which hook fails by checking the backup function pointer of register_hook.

§See Also