#[repr(i32)]pub enum InterceptResult {
Hook = 0,
Forward = 1,
}
Expand description
The return value of hook function.
Variants§
Hook = 0
The user takes over the system call. The return value should be set via result
.
Forward = 1
The specific system call was ignored by the user and the original syscall should be executed.
Auto Trait Implementations§
impl Freeze for InterceptResult
impl RefUnwindSafe for InterceptResult
impl Send for InterceptResult
impl Sync for InterceptResult
impl Unpin for InterceptResult
impl UnwindSafe for InterceptResult
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