Debian Codegraph @

third_party/rust/tokio/src/signal/windows/stub.rs

raw
1 //! Stub implementations for the platform API so that rustdoc can build linkable
2 //! documentation on non-windows platforms.
3
4 use crate::signal::RxFuture;
5 use std::io;
6
7 pub(super) fn ctrl_break() -> io::Result<RxFuture> {
8 panic!()
9 }
10
11 pub(super) fn ctrl_close() -> io::Result<RxFuture> {
12 panic!()
13 }
14
15 pub(super) fn ctrl_c() -> io::Result<RxFuture> {
16 panic!()
17 }
18
19 pub(super) fn ctrl_logoff() -> io::Result<RxFuture> {
20 panic!()
21 }
22
23 pub(super) fn ctrl_shutdown() -> io::Result<RxFuture> {
24 panic!()
25 }