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 {
|
pub struct Agent {
|
||||||
sender_tx: mpsc::UnboundedSender<Packet>,
|
sender_tx: mpsc::UnboundedSender<Packet>,
|
||||||
default_nick: Rc<RefCell<String>>,
|
default_nick: Rc<RefCell<String>>,
|
||||||
|
|
Loading…
Reference in a new issue