Function etcd::kv::update_dir
[−]
[src]
pub fn update_dir<C>(
client: &Client<C>,
key: &str,
ttl: Option<u64>
) -> FutureKeyValueInfo where
C: Clone + Connect,
Updates a directory.
If the directory already existed, only the TTL is updated. If the key was a key-value pair, its value is removed and its TTL is updated.
Parameters
- client: A
Client
to use to make the API call. - key: The name of the node to update.
- ttl: If given, the node will expire after this many seconds.
Errors
Fails if the node does not exist.