Slint Platform implementation for lock screens. This struct is used internally and it is provided here just for reference.
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected