Expand description
Common utilities used by both directory and file traits.
Macros§
- Converts a lower-case attribute name into the appropriate NodeAttributesQuery flag. This is used by the attributes! macro.
Enums§
- Represents if and how objects should be created with an open request.
Traits§
- Trait to be used as a supertrait when an object should allow dynamic casting to an Any.
Functions§
- Common logic for rights processing during cloning a node, shared by both file and directory implementations.
- Used to translate fuchsia.io/Node.GetAttributes calls (io2) to fuchsia.io/Node.GetAttrs (io1). We don’t return a Result since the fuchsia.io/Node.GetAttrs method doesn’t use FIDL errors, and thus requires we return a status code and set of default attributes for the failure case.
- Returns equivalent POSIX mode/permission bits based on the specified rights. Note that these only set the user bits.
- A helper method to send OnOpen event on the handle owned by the
server_end
in caseflags
containsOPEN_FLAG_STATUS
. - Returns true if the rights flags in
flags
do not exceed those inparent_flags
.