Add Clone for Listener
This commit is contained in:
parent
dc141054a1
commit
41ff870128
|
@ -169,3 +169,12 @@ impl<'a> Future for Listen<'a> {
|
|||
Poll::Pending
|
||||
}
|
||||
}
|
||||
|
||||
impl Clone for Listener {
|
||||
fn clone(&self) -> Self {
|
||||
Self {
|
||||
id: None,
|
||||
state: Arc::clone(&self.state),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue