pub struct Helper {
pub verifier: Option<HelperVerifier>,
pub function: HelperFunction,
}Expand description
eBPF Helper pair
Includes both the helper function itself, but also an optional helper verification function that if present will be called first to validate the helper parameters. A verification function is not needed if the helper treats its arguments as values but if one of the arguments represent a pointer then that pointer must be verified by the verification function.
Note: native jitted programs do not have the ability to call the verification programs so all helpers provided to a jitted function must treat their arguments as values only.
Fields§
§verifier: Option<HelperVerifier>Called first to verify the helper function’s arguments
function: HelperFunctionActual helper function that does the work
Auto Trait Implementations§
impl Freeze for Helper
impl RefUnwindSafe for Helper
impl Send for Helper
impl Sync for Helper
impl Unpin for Helper
impl UnwindSafe for Helper
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> 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