Skip to main content

create_with_on_representation

Function create_with_on_representation 

Source
pub fn create_with_on_representation<F: Factory>(
    proxy: NodeSynchronousProxy,
    factory: F,
) -> Result<(F::Result, zxio_node_attributes_t, Option<SelinuxContext>), Status>
Expand description

Waits for the fuchsia.io OnRepresentation event and then uses the factory to create an an appropriate object. This returns attributes (as requested by the corresponding open call) that are present in the OnRepresentation event.

NOTE: The attributes returned are not comprehensive. Check zxio_attr_from_fidl above for supported attributes.