#[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,
},
PipeNotOpen {
errno: i32,
},
PipeEmpty,
PipeUnreadable {
errno: Option<i32>,
},
PipeNotUtf8,
}Expand description
Why a named launch-nonce handoff gave no nonce.
These errors never fall back unless a Windows daemon explicitly permits
an environment copy via LAUNCH_NONCE_PIPE_FALLBACK_ENV.
A named descriptor or pipe
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 a failed handoff or admit a descendant
using its parent’s environment credential.
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.
PipeNotOpen
The named Windows pipe could not be opened within the busy retry window.
PipeEmpty
The named Windows pipe held no bytes.
PipeUnreadable
Reading the Windows pipe failed or exceeded its deadline.
PipeNotUtf8
The Windows 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()