Skip to main content

Module binary

Module binary 

Source
Expand description

Binary file preview provider.

Displays file metadata (size, type, modification timestamp) for non-text, non-image binary files, from the metadata the directory listing already collected — so this provider performs no I/O of its own.

Entry routing:

  • ImageProvider matches image files first (registered before BinaryProvider in the registry).
  • TextProvider takes every file not yet classified, because the worker it spawns reads the file and can classify it on the way past.
  • BinaryProvider therefore serves files already known to be binary: the second and later previews of one, after workers::merge cached what that worker found.

Structs§

BinaryProvider
Preview provider for binary (non-text, non-image) files.

Functions§

build_binary_preview
Builds a PreviewContent::Binary describing path.