Function etcd::kv::get

source ·
pub fn get<C>(
    client: &Client<C>,
    key: &str,
    options: GetOptions
) -> impl Future<Item = Response<KeyValueInfo>, Error = Vec<Error>> + Sendwhere
    C: Clone + Connect,
Expand description

Gets the value of a node.

Parameters

  • client: A Client to use to make the API call.
  • key: The name of the node to retrieve.
  • options: Options to customize the behavior of the operation.

Errors

Fails if the key doesn’t exist.