pub enum Retval {
Int(i32),
}Expand description
Return value type for dr_wrap functions (e.g. skip_call and set_retval).
Not all functions return an int, this enum will be extended if/when new functions are wrapped
that do not return an int (e.g. “gethostbyaddr returns a pointer to the hostent structure” or
“accept returns a value of type SOCKET that is a descriptor for the new socket”, quotes from
the winsock2 docs, https://learn.microsoft.com/en-us/windows/win32/api/winsock2).
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Retval
impl RefUnwindSafe for Retval
impl Send for Retval
impl Sync for Retval
impl Unpin for Retval
impl UnsafeUnpin for Retval
impl UnwindSafe for Retval
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more