pub struct CanBpfFilter {
pub can_id: u32,
pub mask: u32,
pub is_extended: bool,
pub inverted: bool,
}Expand description
Kernel-level CAN filter (BPF) for socket filtering.
Filters are applied at the kernel level before frames reach userspace, providing efficient hardware-accelerated filtering.
Fields§
§can_id: u32CAN ID to match
mask: u32Mask for matching (1 bits = must match, 0 bits = don’t care)
is_extended: boolIf true, filter matches extended (29-bit) IDs
inverted: boolIf true, invert the filter (reject matching frames)
Trait Implementations§
Source§impl Clone for CanBpfFilter
impl Clone for CanBpfFilter
Source§fn clone(&self) -> CanBpfFilter
fn clone(&self) -> CanBpfFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CanBpfFilter
impl Debug for CanBpfFilter
Source§impl<'de> Deserialize<'de> for CanBpfFilter
impl<'de> Deserialize<'de> for CanBpfFilter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CanBpfFilter
impl RefUnwindSafe for CanBpfFilter
impl Send for CanBpfFilter
impl Sync for CanBpfFilter
impl Unpin for CanBpfFilter
impl UnwindSafe for CanBpfFilter
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<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
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