Skip to main content

fetch

Function fetch 

Source
pub fn fetch(addr: &str) -> Result<ServerStats>
Expand description

Connect to addr (e.g. 127.0.0.1:6379), gather server stats, and return them. The TCP connection is closed before this returns.

ยงErrors

Returns an error if the connection fails, a read times out, the server returns a -ERR frame for HELLO 3, or a response cannot be parsed.