Add shutdown() method in EppClient interface

This commit is contained in:
Dirkjan Ochtman 2021-12-13 16:35:50 +01:00 committed by masalachai
parent 0ac766e848
commit 7772b302af
1 changed files with 4 additions and 0 deletions

View File

@ -119,6 +119,10 @@ impl EppClient {
pub fn greeting(&self) -> Result<Greeting, error::Error> {
GreetingDocument::deserialize(&self.connection.greeting).map(|obj| obj.data)
}
pub async fn shutdown(mut self) -> Result<(), Box<dyn Error>> {
self.connection.shutdown().await
}
}
pub struct RequestData<'a, C, E> {