MCPcopy Create free account
hub / github.com/VimYoung/Spell / SpellLockShell

Class SpellLockShell

spell-framework/src/slint_adapter.rs:121–129  ·  view source on GitHub ↗

Slint Platform implementation for lock screens. This struct is used internally and it is provided here just for reference.

Source from the content-addressed store, hash-verified

119 let text = String::from_utf8_lossy(&contents).to_string();
120 info!("[Clipboard]: Successfully pasted text: {}", text);
121 Some(text)
122 }
123
124 // In this cases, an empty string is returned.
125 Err(Error::NoSeats) | Err(Error::ClipboardEmpty) | Err(Error::NoMimeType) => {
126 warn!("[Clipboard]: Clipboard was either empty or didn't have text type data");
127 Some("".to_string())
128 }
129
130 Err(err) => {
131 warn!("[Clipboard]: error getting clipboard text: {}", err);
132 None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected