Skip to main content

one_shot

Function one_shot 

Source
pub async fn one_shot(
    url: &str,
    identity: &Identity,
    session: &str,
    request: ProtocolMessage,
) -> Res<ProtocolMessage>
Expand description

Authenticates with the local key on url and performs one request/response control exchange.

ยงErrors

Returns an error if the connection or authentication fails; a server-side rejection of the request itself is returned as a ProtocolMessage::Error value (not an Err).