blob: e9134a8b0c627d063182830547051ed4d4c6fd47 (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
use std::path::PathBuf;
use std::process::Command;
use super::{ClipboardImage, ForegroundJob, Signal};
/// Unsupported platform stub.
pub fn raise_server_nofile_limit() {}
/// Unsupported platform stub.
pub(crate) fn scrollback_editor_argv(_path: &std::path::Path) -> std::io::Result<Vec<String>> {
Err(std::io::Error::new(
std::io::ErrorKind::Unsupported,
"opening scrollback in an editor is not supported on this platform",
))
}
/// Unsupported platform stub.
pub fn detach_server_daemon_command(_command: &mut Command) {}
/// Unsupported platform stub.
pub fn current_process_is_detached_server_daemon() -> bool {
false
}
/// Unsupported platform stub.
pub fn foreground_job(_child_pid: u32) -> Option<ForegroundJob> {
None
}
/// Unsupported platform stub.
pub fn foreground_group_leader_job(_process_group_id: u32) -> Option<ForegroundJob> {
None
}
/// Unsupported platform stub.
pub fn foreground_process_group_id(_child_pid: u32) -> Option<u32> {
None
}
/// Unsupported platform stub.
pub fn process_cwd(_pid: u32) -> Option<PathBuf> {
None
}
/// Unsupported platform stub.
pub fn session_processes(_child_pid: u32) -> Vec<u32> {
Vec::new()
}
/// Unsupported platform stub.
pub fn signal_processes(_pids: &[u32], _signal: Signal) {}
/// Unsupported platform stub.
pub fn process_exists(_pid: u32) -> bool {
false
}
/// Unsupported platform stub.
pub fn write_clipboard(_bytes: &[u8]) -> bool {
false
}
/// Unsupported platform stub.
pub fn read_clipboard_text() -> Option<String> {
None
}
/// Unsupported platform stub.
pub fn open_url(_url: &str) -> std::io::Result<()> {
Err(std::io::Error::new(
std::io::ErrorKind::Unsupported,
"opening URLs is not supported on this platform",
))
}
/// Unsupported platform stub.
// Windows does not wire clipboard-image bridging into semantic input yet.
#[cfg_attr(windows, allow(dead_code))]
pub fn read_clipboard_image() -> Option<ClipboardImage> {
None
}
/// Unsupported platform stub.
pub fn show_desktop_notification(_title: &str, _body: Option<&str>) -> std::io::Result<bool> {
Ok(false)
}
|