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:
ImageProvidermatches image files first (registered beforeBinaryProviderin the registry).TextProvidertakes every file not yet classified, because the worker it spawns reads the file and can classify it on the way past.BinaryProvidertherefore serves files already known to be binary: the second and later previews of one, afterworkers::mergecached what that worker found.
Structs§
- Binary
Provider - Preview provider for binary (non-text, non-image) files.
Functions§
- build_
binary_ preview - Builds a
PreviewContent::Binarydescribingpath.