Struct netlink_packet_audit::rules::RuleBuffer
source · #[non_exhaustive]pub struct RuleBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> RuleBuffer<T>
impl<T: AsRef<[u8]>> RuleBuffer<T>
pub fn new(buffer: T) -> RuleBuffer<T>
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
pub fn flags(&self) -> u32
pub fn action(&self) -> u32
pub fn field_count(&self) -> u32
pub fn buflen(&self) -> u32
source§impl<T: AsRef<[u8]> + AsMut<[u8]>> RuleBuffer<T>
impl<T: AsRef<[u8]> + AsMut<[u8]>> RuleBuffer<T>
pub fn set_flags(&mut self, value: u32)
pub fn set_action(&mut self, value: u32)
pub fn set_field_count(&mut self, value: u32)
pub fn set_buflen(&mut self, value: u32)
pub fn syscalls_mut(&mut self) -> &mut [u8] ⓘ
pub fn fields_mut(&mut self) -> &mut [u8] ⓘ
pub fn set_field(&mut self, position: usize, value: u32)
pub fn values_mut(&mut self) -> &mut [u8] ⓘ
pub fn set_value(&mut self, position: usize, value: u32)
pub fn field_flags_mut(&mut self) -> &mut [u8] ⓘ
pub fn set_field_flags(&mut self, position: usize, value: u32)
pub fn buf_mut(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
source§impl<T: Clone> Clone for RuleBuffer<T>
impl<T: Clone> Clone for RuleBuffer<T>
source§fn clone(&self) -> RuleBuffer<T>
fn clone(&self) -> RuleBuffer<T>
Returns a copy 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<T: Debug> Debug for RuleBuffer<T>
impl<T: Debug> Debug for RuleBuffer<T>
source§impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleBuffer<&'a T>> for RuleMessage
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleBuffer<&'a T>> for RuleMessage
source§fn parse(buf: &RuleBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &RuleBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq<RuleBuffer<T>> for RuleBuffer<T>
impl<T: PartialEq> PartialEq<RuleBuffer<T>> for RuleBuffer<T>
source§fn eq(&self, other: &RuleBuffer<T>) -> bool
fn eq(&self, other: &RuleBuffer<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for RuleBuffer<T>
impl<T> StructuralEq for RuleBuffer<T>
impl<T> StructuralPartialEq for RuleBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for RuleBuffer<T>where T: RefUnwindSafe,
impl<T> Send for RuleBuffer<T>where T: Send,
impl<T> Sync for RuleBuffer<T>where T: Sync,
impl<T> Unpin for RuleBuffer<T>where T: Unpin,
impl<T> UnwindSafe for RuleBuffer<T>where T: UnwindSafe,
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