Trait IntrospectorServerHandler

Source
pub trait IntrospectorServerHandler<___T: Transport> {
    // Required method
    fn get_moniker(
        &mut self,
        sender: &ServerSender<___T, Introspector>,
        request: RequestBuffer<___T, GetMoniker>,
        responder: Responder<GetMoniker>,
    );

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        sender: &ServerSender<___T, Introspector>,
        ordinal: u64,
    ) { ... }
}
Expand description

A server handler for the Introspector protocol.

See Introspector for more details.

Required Methods§

Source

fn get_moniker( &mut self, sender: &ServerSender<___T, Introspector>, request: RequestBuffer<___T, GetMoniker>, responder: Responder<GetMoniker>, )

Obtains the moniker relative to this realm of the component corresponding to the provided token. Runners may obtain the token via fuchsia.component.runner/ComponentStartInfo.component_instance.

Returns Error.INSTANCE_NOT_FOUND if the token is invalid, or does not correspond to a component under this realm.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, sender: &ServerSender<___T, Introspector>, ordinal: u64, )

Implementors§