pub enum Action {
Register,
Deregister,
}
Expand description
When included in a GET request, the Observe Option extends the GET method so it does not only retrieve a current representation of the target resource, but also requests the server to add or remove an entry in the list of observers of the resource depending on the option value. The list entry consists of the client endpoint and the token specified by the client in the request. Possible values are:
0
(register) adds the entry to the list, if not present;
1
(deregister) removes the entry from the list, if present
Variants§
Register
Tells the resource owner we would like to observe updates to the resource we’ve issued a GET request for.
Deregister
Tells the resource owner we would no longer like to observe updates to the resource we’ve issued a GET request for.
Implementations§
Trait Implementations§
source§impl Ord for Action
impl Ord for Action
source§impl PartialEq<Action> for Action
impl PartialEq<Action> for Action
source§impl PartialOrd<Action> for Action
impl PartialOrd<Action> for Action
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more