comparison src/lib.rs @ 20:2b78a483f84b

Update `libsystemd`
author Martin Habovstiak <martin.habovstiak@gmail.com>
date Sat, 13 Jul 2024 14:19:29 +0200
parents db1dc99252e2
children f6334887e3c8
comparison
equal deleted inserted replaced
19:77dc1c45b424 20:2b78a483f84b
74 #[cfg(all(target_os = "linux", feature = "enable_systemd"))] 74 #[cfg(all(target_os = "linux", feature = "enable_systemd"))]
75 pub(crate) mod systemd_sockets { 75 pub(crate) mod systemd_sockets {
76 use std::fmt; 76 use std::fmt;
77 use std::sync::Mutex; 77 use std::sync::Mutex;
78 use libsystemd::activation::FileDescriptor; 78 use libsystemd::activation::FileDescriptor;
79 use libsystemd::errors::Error as LibSystemdError; 79 use libsystemd::errors::SdError as LibSystemdError;
80 use libsystemd::errors::Result as LibSystemdResult; 80 type LibSystemdResult<T> = Result<T, LibSystemdError>;
81 81
82 #[derive(Debug)] 82 #[derive(Debug)]
83 pub(crate) struct Error(&'static Mutex<LibSystemdError>); 83 pub(crate) struct Error(&'static Mutex<LibSystemdError>);
84 84
85 impl fmt::Display for Error { 85 impl fmt::Display for Error {