Module component

Source

Structs§

PathComponent
A wrapper type for validated path components in the castore model. Internally uses a bytes::Bytes, but disallows slashes, and null bytes to be present, as well as ‘.’, ‘..’ and the empty string. It also rejects components that are too long (> 255 bytes).

Enums§

PathComponentError
Errors created when parsing / validating PathComponent.

Constants§

MAX_NAME_LEN
The maximum length an individual path component can have. Linux allows 255 bytes of actual name, so we pick that.

Functions§

validate_name 🔒