about summary refs log tree commit diff
path: root/src/error.rs
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-11-21 00:45:48 -0700
committerIrene Knapp <ireneista@irenes.space>2026-11-21 00:45:48 -0700
commitf6cb132d4e026db2b5fcb467bca50eab1c50f04c (patch)
treefc1e7452c9f6d1c2902cf03a3d784dba4e1e30f4 /src/error.rs
parent8a06e8a8aae8c77de1d93833edaeed4d9cb5fb1d (diff)
perform the ioctl()
and clean up the returned memory, too

Force-Push: yes
Change-Id: I01ff1c94fd97a185656a05ce432471fa67cb08e5
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index d6bde2f..b3bb460 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -42,6 +42,13 @@ impl<T> From<async_channel::SendError<T>> for Error {
   }
 }
 
+impl From<rustix::io::Errno> for Error {
+  fn from(error: rustix::io::Errno) -> Error {
+    Error(format!("Unix system-call error: {}", error))
+  }
+}
+
+
 impl From<xcb::Error> for Error {
   fn from(error: xcb::Error) -> Error {
     match error {