pub async fn io2_to_io1_attrs<T: Node>(
node: &T,
rights: Rights,
) -> (Status, NodeAttributes)
Expand description
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.