fingers

Finger client library in Rust
Log | Files | Refs | README | LICENSE

commit e0ae73f2d8375347ecb62a5ff138074270741742
parent f138f6c16a7764a53b1c2cd111130b5dd835e28a
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed,  1 Dec 2021 22:31:52 -0800

Add proper setters

Diffstat:
Msrc/lib.rs | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/lib.rs b/src/lib.rs @@ -68,6 +68,14 @@ pub fn finger(query: &str, host: &str) -> Request { } } impl Request { + pub fn timeout(mut self, timeout: Option<u64>) -> Request { + self.timeout = timeout; + self + } + pub fn max_response_len(mut self, mrl: Option<u64>) -> Request { + self.max_response_len = mrl; + self + } /// rfc1288 2.2 is ignored, we will allow UTF-8 pub fn send(self) -> Result<String, Error> { let dest: String;