mirror of
https://github.com/deavmi/doap
synced 2024-07-04 15:10:11 +02:00
Package
- Make `RequestState` available CoapRequestFuture - Made `RequestState` public - Documented it
This commit is contained in:
parent
d659c2348b
commit
2b2641f479
|
@ -1,4 +1,4 @@
|
||||||
module doap.client;
|
module doap.client;
|
||||||
|
|
||||||
public import doap.client.client : CoapClient;
|
public import doap.client.client : CoapClient;
|
||||||
public import doap.client.request : CoapRequestBuilder, CoapRequestFuture;
|
public import doap.client.request : CoapRequestBuilder, CoapRequestFuture, RequestState;
|
|
@ -258,10 +258,25 @@ import core.sync.mutex : Mutex;
|
||||||
import core.sync.condition : Condition;
|
import core.sync.condition : Condition;
|
||||||
|
|
||||||
|
|
||||||
private enum RequestState
|
/**
|
||||||
|
* The state of a `CoapRequestFuture`
|
||||||
|
*/
|
||||||
|
public enum RequestState
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The future has been created
|
||||||
|
*/
|
||||||
CREATED,
|
CREATED,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The future has completed
|
||||||
|
* successfully
|
||||||
|
*/
|
||||||
COMPLETED,
|
COMPLETED,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The future was cancelled
|
||||||
|
*/
|
||||||
CANCELLED
|
CANCELLED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user