Expand description
Common utilities used by both directory and file traits.
Macros§
- attribute_
query - Converts a lower-case attribute name into the appropriate NodeAttributesQuery flag. This is used by the attributes! macro.
Enums§
- Creation
Mode - Represents if and how objects should be created with an open request.
Traits§
- IntoAny
- Trait to be used as a supertrait when an object should allow dynamic casting to an Any.
Functions§
- decode_
extended_ attribute_ value - encode_
extended_ attribute_ value - extended_
attributes_ sender - inherit_
rights_ for_ clone - Common logic for rights processing during cloning a node, shared by both file and directory implementations.
- io2_
to_ io1_ attrs - 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.
- mutable_
node_ attributes_ to_ query - rights_
to_ posix_ mode_ bits - Returns equivalent POSIX mode/permission bits based on the specified rights. Note that these only set the user bits.
- send_
on_ open_ with_ error - A helper method to send OnOpen event on the handle owned by the
server_end
in caseflags
containsOPEN_FLAG_STATUS
. - stricter_
or_ same_ rights - Returns true if the rights flags in
flags
do not exceed those inparent_flags
.