pub enum InjectError {
IllegalPath(ContainsNul<u16>),
Io(Error),
UnsupportedTarget,
RemoteIo(Error),
RemoteException(ExceptionCode),
ProcessInaccessible,
ArchitectureMismatch,
Goblin(Error),
}Available on crate feature
syringe only.Expand description
Error enum for errors during Syringe::inject.
Variants§
IllegalPath(ContainsNul<u16>)
Variant representing an illegal interior nul value in the module path.
Io(Error)
Variant representing an io error.
UnsupportedTarget
Variant representing an unsupported target process.
RemoteIo(Error)
Variant representing an io error inside the target process.
RemoteException(ExceptionCode)
Variant representing an unhandled exception inside the target process.
ProcessInaccessible
Variant representing an inaccessible target process. This can occur if it crashed or was terminated.
ArchitectureMismatch
Variant representing an incompatible payload module compiled for a different target than the target process.
Goblin(Error)
Available on x86-64 and crate feature
into-x86-from-x64 only.Variant representing an error while loading an pe file.
Trait Implementations§
Source§impl Debug for InjectError
Available on Windows only.
impl Debug for InjectError
Available on Windows only.
Source§impl Display for InjectError
Available on Windows only.
impl Display for InjectError
Available on Windows only.
Source§impl Error for InjectError
Available on Windows only.
impl Error for InjectError
Available on Windows only.
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<ContainsNul<u16>> for InjectError
Available on Windows only.
impl From<ContainsNul<u16>> for InjectError
Available on Windows only.
Source§fn from(source: ContainsNul<u16>) -> Self
fn from(source: ContainsNul<u16>) -> Self
Converts to this type from the input type.
Source§impl From<Error> for InjectError
Available on Windows only.
impl From<Error> for InjectError
Available on Windows only.
Source§impl From<Error> for InjectError
Available on Windows only.
impl From<Error> for InjectError
Available on Windows only.
Source§impl From<ExceptionCode> for InjectError
Available on Windows only.
impl From<ExceptionCode> for InjectError
Available on Windows only.
Source§fn from(err: ExceptionCode) -> Self
fn from(err: ExceptionCode) -> Self
Converts to this type from the input type.
Source§impl From<ExceptionOrIoError> for InjectError
Available on Windows only.
impl From<ExceptionOrIoError> for InjectError
Available on Windows only.
Source§fn from(err: ExceptionOrIoError) -> Self
fn from(err: ExceptionOrIoError) -> Self
Converts to this type from the input type.
Source§impl From<InjectError> for SyringeError
Available on Windows only.
impl From<InjectError> for SyringeError
Available on Windows only.
Source§fn from(err: InjectError) -> Self
fn from(err: InjectError) -> Self
Converts to this type from the input type.
Source§impl From<InjectError> for SyringeOperationError
Available on Windows only.
impl From<InjectError> for SyringeOperationError
Available on Windows only.
Source§fn from(source: InjectError) -> Self
fn from(source: InjectError) -> Self
Converts to this type from the input type.
Source§impl From<IoOrNulError> for InjectError
Available on Windows only.
impl From<IoOrNulError> for InjectError
Available on Windows only.
Source§fn from(err: IoOrNulError) -> Self
fn from(err: IoOrNulError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InjectError
Available on Windows only.
impl !UnwindSafe for InjectError
Available on Windows only.
impl Freeze for InjectError
Available on Windows only.
impl Send for InjectError
Available on Windows only.
impl Sync for InjectError
Available on Windows only.
impl Unpin for InjectError
Available on Windows only.
impl UnsafeUnpin for InjectError
Available on Windows only.
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Windows only.
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Available on Windows only.
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> DropFlavorWrapper<T> for T
Available on Windows only.
impl<T> DropFlavorWrapper<T> for T
Available on Windows only.
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Available on Windows only.
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Available on Windows only.
Source§impl<T> Identity for Twhere
T: ?Sized,
Available on Windows only.
impl<T> Identity for Twhere
T: ?Sized,
Available on Windows only.