Skip to main contentModule hooks
Source - HookConfig
- Hook configuration attached to
Config.
- HookEvent
- All lifecycle events the handler can emit.
- HookFuture
- Boxed async future returned by hook callbacks.
- HookSender
- Sender side of the lifecycle event broadcast channel.
Callers call
.subscribe() to receive a Receiver<HookEvent>. - PreCreateCallback
- Pre-create callback. Receives proposed
UploadInfo; may return modified fields
(e.g. override ID or metadata) or reject creation with an Err. - PreFinishCallback
- Pre-finish callback. Called after all bytes are written but before 204 is sent.
Return
Err to abort and respond with an error. - PreTerminateCallback
- Pre-terminate callback. Called before DELETE is processed.
Return
Err to reject the termination.