Struct exocore_discovery::client::Client[][src]

pub struct Client { /* fields omitted */ }
Expand description

Discovery service client.

The discovery service is a simple REST API on which clients can push temporary payload for which the server generates a random PIN. Another client can then retrieve that payload by using the generated random PIN. Once a payload is consumed, it is deleted.

Implementations

Creates a new client instance.

Creates a new payload on the server. If successfully created, the response contains a unique pin that can be used by another client to retrieve the payload.

Gets a payload by unique pin created by the call to create by another client.

Gets a payload by unique pin created by the call to create by another client and retries fetching if it hasn’t been found it until timeout.

Replies to a payload on the server using the given reply pin and authentication token. If successfully created, the response contains can be retrieved using the reply pin.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.