blob: bfced55725bb12fa3ced18ec48f8b9d527a6fa11 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
use crate::os_input_output::SignalEvent;
use async_trait::async_trait;
use std::io;
/// Windows async signal listener stub. Not yet implemented.
pub(crate) struct AsyncSignalListener;
impl AsyncSignalListener {
pub fn new() -> io::Result<Self> {
unimplemented!("Windows AsyncSignalListener not yet implemented")
}
}
#[async_trait]
impl crate::os_input_output::AsyncSignals for AsyncSignalListener {
async fn recv(&mut self) -> Option<SignalEvent> {
unimplemented!("Windows AsyncSignalListener not yet implemented")
}
}
/// Windows blocking signal iterator stub. Not yet implemented.
pub(crate) struct BlockingSignalIterator;
impl BlockingSignalIterator {
pub fn new() -> io::Result<Self> {
unimplemented!("Windows BlockingSignalIterator not yet implemented")
}
}
impl Iterator for BlockingSignalIterator {
type Item = SignalEvent;
fn next(&mut self) -> Option<SignalEvent> {
unimplemented!("Windows BlockingSignalIterator not yet implemented")
}
}
|