pub trait DirectoryProxyExt {
    // Required methods
    fn open2_node<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        path: &'life1 str,
        node_options: NodeOptions
    ) -> Pin<Box<dyn Future<Output = Result<T::Proxy, Status>> + Send + 'async_trait>>
       where T: 'async_trait + ProtocolMarker,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn open2_node_get_representation<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        path: &'life1 str,
        node_options: NodeOptions
    ) -> Pin<Box<dyn Future<Output = Result<(T::Proxy, Representation), Status>> + Send + 'async_trait>>
       where T: 'async_trait + ProtocolMarker,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Extension trait for fio::DirectoryProxy to make interactions with the fuchsia.io protocol less verbose.

Required Methods§

source

fn open2_node<'life0, 'life1, 'async_trait, T>( &'life0 self, path: &'life1 str, node_options: NodeOptions ) -> Pin<Box<dyn Future<Output = Result<T::Proxy, Status>> + Send + 'async_trait>>
where T: 'async_trait + ProtocolMarker, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Open path using node_options, returning a proxy to the remote resource.

Waits for fio::NodeEvent::OnRepresentation if fio::NodeFlags::GET_REPRESENTATION is specified, otherwise calls fuchsia.io/Node.GetConnectionInfo to verify the result.

source

fn open2_node_get_representation<'life0, 'life1, 'async_trait, T>( &'life0 self, path: &'life1 str, node_options: NodeOptions ) -> Pin<Box<dyn Future<Output = Result<(T::Proxy, Representation), Status>> + Send + 'async_trait>>
where T: 'async_trait + ProtocolMarker, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Similar to DirectoryProxyExt::open2_node, but waits for and returns the fio::NodeEvent::OnRepresentation event sent when opening a resource.

Requires fio::NodeFlags::GET_REPRESENTATION to be specified in node_options.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DirectoryProxyExt for DirectoryProxy

source§

fn open2_node<'life0, 'life1, 'async_trait, T>( &'life0 self, path: &'life1 str, node_options: NodeOptions ) -> Pin<Box<dyn Future<Output = Result<T::Proxy, Status>> + Send + 'async_trait>>
where T: 'async_trait + ProtocolMarker, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

fn open2_node_get_representation<'life0, 'life1, 'async_trait, T>( &'life0 self, path: &'life1 str, node_options: NodeOptions ) -> Pin<Box<dyn Future<Output = Result<(T::Proxy, Representation), Status>> + Send + 'async_trait>>
where T: 'async_trait + ProtocolMarker, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§