pub enum ProcessBuilderError {
Show 17 variants
InvalidArg(String),
BadHandle(&'static str),
CreateProcess(Status),
CreateThread(Status),
ProcessStart(Status),
ElfParse(ElfParseError),
ElfLoad(ElfLoadError),
ProcessArgs(ProcessargsError),
GenericStatus(&'static str, Status),
Internal(&'static str, Error),
InvalidInterpHeader(Error),
LoaderMissing(),
LoadDynamicLinker(Error),
LoadDynamicLinkerTimeout(),
WriteBootstrapMessage(Status),
DestroyReservationVMAR(Status),
DuplicateHandle(HandleType, Status),
}
Expand description
Error type returned by ProcessBuilder methods.
Variants§
InvalidArg(String)
BadHandle(&'static str)
CreateProcess(Status)
CreateThread(Status)
ProcessStart(Status)
ElfParse(ElfParseError)
ElfLoad(ElfLoadError)
ProcessArgs(ProcessargsError)
GenericStatus(&'static str, Status)
Internal(&'static str, Error)
InvalidInterpHeader(Error)
LoaderMissing()
LoadDynamicLinker(Error)
LoadDynamicLinkerTimeout()
WriteBootstrapMessage(Status)
DestroyReservationVMAR(Status)
DuplicateHandle(HandleType, Status)
Implementations§
Source§impl ProcessBuilderError
impl ProcessBuilderError
Sourcepub fn as_zx_status(&self) -> Status
pub fn as_zx_status(&self) -> Status
Returns an appropriate zx::Status code for the given error.
Trait Implementations§
Source§impl Debug for ProcessBuilderError
impl Debug for ProcessBuilderError
Source§impl Display for ProcessBuilderError
impl Display for ProcessBuilderError
Source§impl Error for ProcessBuilderError
impl Error for ProcessBuilderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ElfLoadError> for ProcessBuilderError
impl From<ElfLoadError> for ProcessBuilderError
Source§fn from(source: ElfLoadError) -> Self
fn from(source: ElfLoadError) -> Self
Converts to this type from the input type.
Source§impl From<ElfParseError> for ProcessBuilderError
impl From<ElfParseError> for ProcessBuilderError
Source§fn from(source: ElfParseError) -> Self
fn from(source: ElfParseError) -> Self
Converts to this type from the input type.
Source§impl From<ProcessargsError> for ProcessBuilderError
impl From<ProcessargsError> for ProcessBuilderError
Source§fn from(source: ProcessargsError) -> Self
fn from(source: ProcessargsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcessBuilderError
impl !RefUnwindSafe for ProcessBuilderError
impl Send for ProcessBuilderError
impl Sync for ProcessBuilderError
impl Unpin for ProcessBuilderError
impl !UnwindSafe for ProcessBuilderError
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