pub struct ListenFd {
pub fd_base: c_int,
pub fd_len: c_int,
pub names: Vec<String>,
}Expand description
Captures information on file descriptors passed through the environment.
When systemd sets pre-opened file descriptors in a service unit, it passes a description of them via the environment variables.
Fields§
§fd_base: c_intThe first file descriptor referred to by the environment.
fd_len: c_intThe count of file descriptors referred to by the environment.
names: Vec<String>The names / descriptors of all file descriptors, if available.
Implementations§
Auto Trait Implementations§
impl Freeze for ListenFd
impl RefUnwindSafe for ListenFd
impl Send for ListenFd
impl Sync for ListenFd
impl Unpin for ListenFd
impl UnwindSafe for ListenFd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more