Trait ResolverServerHandler

Source
pub trait ResolverServerHandler<___T: Transport> {
    // Required method
    fn resolve(
        &mut self,
        sender: &ServerSender<Resolver, ___T>,
        request: Request<Resolve, ___T>,
        responder: Responder<Resolve>,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

A server handler for the Resolver protocol.

See Resolver for more details.

Required Methods§

Source

fn resolve( &mut self, sender: &ServerSender<Resolver, ___T>, request: Request<Resolve, ___T>, responder: Responder<Resolve>, ) -> impl Future<Output = ()> + Send

Resolves the given name to an executable and an shared library loader.

If present, the executable is suitable for use as the executable property of LaunchInfo – in particular, it will have ZX_RIGHT_EXECUTE. If present, the ldsvc is suitable for use as the PA_LDSVC_LOADER handle when launching the process.

For example, the resolver might locate the given name inside a package and return the executable binary from the package as well as a shared library loader scoped to that package.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§