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> {