Skip to main content

Module hooks

Module hooks 

Source

Structs§

HookConfig
Hook configuration attached to Config.

Enums§

HookEvent
All lifecycle events the handler can emit.

Type Aliases§

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.