From 7772b302af8030ea82fce64dbfa7265fcd254e56 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Mon, 13 Dec 2021 16:35:50 +0100 Subject: [PATCH] Add shutdown() method in EppClient interface --- src/client.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client.rs b/src/client.rs index 859620d..600a211 100644 --- a/src/client.rs +++ b/src/client.rs @@ -119,6 +119,10 @@ impl EppClient { pub fn greeting(&self) -> Result { GreetingDocument::deserialize(&self.connection.greeting).map(|obj| obj.data) } + + pub async fn shutdown(mut self) -> Result<(), Box> { + self.connection.shutdown().await + } } pub struct RequestData<'a, C, E> {