mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
derive Clone for Agent
This can be required when dealing with async code. I'm happy for you to show me other ways if you think it's not necessary. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
b6369741cd
commit
b1e8b9ee58
1 changed files with 1 additions and 0 deletions
|
@ -345,6 +345,7 @@ impl ClientBuilder<'_> {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Agent {
|
||||
sender_tx: mpsc::UnboundedSender<Packet>,
|
||||
default_nick: Rc<RefCell<String>>,
|
||||
|
|
Loading…
Reference in a new issue