We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pub handle
1 parent f5ec360 commit dc9823cCopy full SHA for dc9823c
1 file changed
src/lib.rs
@@ -80,7 +80,8 @@ impl IpStackConfig {
80
81
pub struct IpStack {
82
accept_receiver: UnboundedReceiver<IpStackStream>,
83
- _handle: JoinHandle<Result<()>>, // Just hold the task handle
+ /// for aborting on disconnect
84
+ pub handle: JoinHandle<Result<()>>,
85
}
86
87
impl IpStack {
@@ -91,7 +92,7 @@ impl IpStack {
91
92
let (accept_sender, accept_receiver) = mpsc::unbounded_channel::<IpStackStream>();
93
IpStack {
94
accept_receiver,
- _handle: run(config, device, accept_sender),
95
+ handle: run(config, device, accept_sender),
96
97
98
0 commit comments