pub fn finger(
query: &Query,
timeout: Duration,
max_response_size: u64,
) -> Result<String, FingerError>Expand description
Execute a finger query over TCP, returning the response as a string.
Calls finger_raw and decodes the response with String::from_utf8_lossy.
Invalid UTF-8 bytes are replaced with U+FFFD. The response is capped at
max_response_size bytes.
ยงExample
use std::time::Duration;
use digit::query::Query;
use digit::protocol::finger;
let q = Query::parse(Some("user@example.com"), false, 79).unwrap();
let response = finger(&q, Duration::from_secs(10), 1_048_576).unwrap();
println!("{}", response);