pub struct Server { /* fields omitted */ }
Expand description
Discovery service server.
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.
Payloads expires after a certain configured delay.
Creates an instance of the server.
Needs to be started using the start
method in order to start listening
for requests.
Starts the server that will listens for requests and block forever or
until failure.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
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
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,