Skip to main content

Module callback

Module callback 

Source
Expand description

Methods a server calls back on the client over the same session (0.21+).

This is the only direction reversal in version 1, and it exists because the endpoint that knows a value is missing is never the process that can ask a person for it. A stdio resolver has no terminal at all: its stdin and stdout are the protocol. Prior art solves this the same way, from D-Bus Secret Service returning a prompt object the client must drive, to the editor protocols whose servers request input rather than drawing it.

A server MUST NOT send one of these unless the client advertised it in InitializeParams::client_methods.

Modules§

method

Structs§

CredentialParams
One semantic provider credential requested while an endpoint is initializing or refreshing its authentication (0.21+).
PromptParams
Everything the person answering needs, and nothing else.
PromptResult
The answer carries a secret and is treated exactly like a resolved value: never logged, and dropped as soon as it is copied.

Enums§

CredentialResult
A broker lookup is either a secret value or an ordinary miss. Missing is not a transport failure: the endpoint may try another authentication mechanism or return its own actionable authentication error.