Skip to main content

Module node

Module node 

Source

Structs§

FileIter
Iterates over all files in the cache (skipping directories).
NodeCache
NodeCache is an in-memory cache of weak node references.
OpenedNode
PlaceholderOwner
PlaceholderOwner is a reserved slot in the node cache.
WeakNode
WeakNode permits upgrade_and_downcast_node below which only tries to upgrade if we know the downcast will work. This makes for a simpler and more performant implementation of FileIter which would otherwise have to jump through some hoops to drop the reference count whilst not holding locks if the downcast fails.

Enums§

GetResult
See NodeCache::get_or_reserve.

Traits§

FxNode
FxNode is a node in the filesystem hierarchy (either a file or directory).
ToWeakNode
Used to convert nodes into WeakNode which is stored in the cache. This should be implemented using the ToWeakNode derive macro.