#[non_exhaustive]pub enum LaunchNonceError {
Malformed {
value: String,
},
NotOpen {
fd: i32,
errno: i32,
},
NotAPipe {
fd: i32,
},
WrongPipe {
fd: i32,
expected_inode: u64,
found_inode: u64,
},
Empty {
fd: i32,
},
Unreadable {
fd: i32,
errno: Option<i32>,
},
NotUtf8 {
fd: i32,
},
}Expand description
Why the descriptor named by LAUNCH_NONCE_FD_ENV gave no nonce.
None of these falls back to the environment copy. A named descriptor that cannot be read means the handoff went wrong, or that this process inherited the variable from a module without inheriting the pipe; reading the environment instead would hide the first and defeat the second.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Malformed
The variable is not <fd>:<inode>.
NotOpen
Nothing is open at that number: the variable was inherited without the descriptor, which is what a process spawned by a module sees.
NotAPipe
The descriptor is open but is not a pipe. It was left alone.
WrongPipe
The descriptor is a pipe, but not the one named. It was left alone.
Empty
The named pipe holds no bytes. It was left open and unread.
Unreadable
Reading the named pipe failed.
NotUtf8
The named pipe held bytes that are not UTF-8.
Trait Implementations§
Source§impl Clone for LaunchNonceError
impl Clone for LaunchNonceError
Source§impl Debug for LaunchNonceError
impl Debug for LaunchNonceError
Source§impl Display for LaunchNonceError
impl Display for LaunchNonceError
impl Eq for LaunchNonceError
Source§impl Error for LaunchNonceError
impl Error for LaunchNonceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()