Struct libscmp::Arg[][src]

#[repr(C)]
pub struct Arg { /* fields omitted */ }
Expand description

Represents a syscall argument comparison, used in a filter rule.

Implementations

Create a syscall argument comparison given the argument number, comparison operator, and two data arguments.

For example, Arg::new(1, Cmp::Eq, 2, 0) is equivalent to Arg::new_eq(1, 2), and Arg::new(0, Cmp::MaskedEq, 1, 2) is equivalent to Arg::new_masked_eq(0, 1, 2).

Create a syscall argument comparison that filters for the given argument being not equal to the given value.

Essentially, this filters for SYSCALL_ARGS[arg] != data.

Create a syscall argument comparison that filters for the given argument being less than the given value.

Essentially, this filters for SYSCALL_ARGS[arg] < data.

Create a syscall argument comparison that filters for the given argument being less than or equal to the given value.

Essentially, this filters for SYSCALL_ARGS[arg] <= data.

Create a syscall argument comparison that filters for the given argument being equal to the given value.

Essentially, this filters for SYSCALL_ARGS[arg] == data.

Create a syscall argument comparison that filters for the given argument being greater than or equal to the given value.

Essentially, this filters for SYSCALL_ARGS[arg] >= data.

Create a syscall argument comparison that filters for the given argument being greater than the given value.

Essentially, this filters for SYSCALL_ARGS[arg] > data.

Create a syscall argument comparison that filters for the given argument being equal to the given value, once the specified mask is applied.

Essentially, this filters for SYSCALL_ARGS[arg] & mask == data.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.