Struct netlink_packet_audit::rules::RuleBuffer
source · [−]pub struct RuleBuffer<T> { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<'a, T: AsRef<[u8]> + ?Sized> RuleBuffer<&'a T>
impl<'a, T: AsRef<[u8]> + ?Sized> RuleBuffer<&'a T>
pub fn syscalls(&self) -> &'a [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn fields(&self) -> &'a [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn values(&self) -> &'a [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn field_flags(&self) -> &'a [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn buf(&self) -> &'a [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
sourceimpl<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]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn fields_mut(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn set_field(&mut self, position: usize, value: u32)
pub fn values_mut(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn set_value(&mut self, position: usize, value: u32)
pub fn field_flags_mut(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
pub fn set_field_flags(&mut self, position: usize, value: u32)
pub fn buf_mut(&mut self) -> &mut [u8]ⓘNotable traits for &[u8]impl<'_> Read for &[u8]impl<'_> Write for &mut [u8]
Trait Implementations
sourceimpl<T: Clone> Clone for RuleBuffer<T>
impl<T: Clone> Clone for RuleBuffer<T>
sourcefn clone(&self) -> RuleBuffer<T>
fn clone(&self) -> RuleBuffer<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for RuleBuffer<T>
impl<T: Debug> Debug for RuleBuffer<T>
sourceimpl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleBuffer<&'a T>> for RuleMessage
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleBuffer<&'a T>> for RuleMessage
sourcefn parse(buf: &RuleBuffer<&'a T>) -> Result<Self, DecodeError>
fn parse(buf: &RuleBuffer<&'a T>) -> Result<Self, DecodeError>
Deserialize the current type.
sourceimpl<T: PartialEq> PartialEq<RuleBuffer<T>> for RuleBuffer<T>
impl<T: PartialEq> PartialEq<RuleBuffer<T>> for RuleBuffer<T>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &RuleBuffer<T>) -> bool
fn ne(&self, other: &RuleBuffer<T>) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more