Add shutdown() method in EppClient interface
This commit is contained in:
parent
0ac766e848
commit
7772b302af
|
@ -119,6 +119,10 @@ impl EppClient {
|
||||||
pub fn greeting(&self) -> Result<Greeting, error::Error> {
|
pub fn greeting(&self) -> Result<Greeting, error::Error> {
|
||||||
GreetingDocument::deserialize(&self.connection.greeting).map(|obj| obj.data)
|
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> {
|
pub struct RequestData<'a, C, E> {
|
||||||
|
|
Loading…
Reference in New Issue