[−][src]Struct netlink_packet_audit::rules::RuleBuffer
Implementations
impl<T: AsRef<[u8]>> RuleBuffer<T>
[src]
pub fn new(buffer: T) -> RuleBuffer<T>
[src]
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
[src]
pub fn flags(&self) -> u32
[src]
pub fn action(&self) -> u32
[src]
pub fn field_count(&self) -> u32
[src]
pub fn buflen(&self) -> u32
[src]
impl<'a, T: AsRef<[u8]> + ?Sized> RuleBuffer<&'a T>
[src]
pub fn syscalls(&self) -> &'a [u8]
[src]
pub fn fields(&self) -> &'a [u8]
[src]
pub fn values(&self) -> &'a [u8]
[src]
pub fn field_flags(&self) -> &'a [u8]
[src]
pub fn buf(&self) -> &'a [u8]
[src]
impl<T: AsRef<[u8]> + AsMut<[u8]>> RuleBuffer<T>
[src]
pub fn set_flags(&mut self, value: u32)
[src]
pub fn set_action(&mut self, value: u32)
[src]
pub fn set_field_count(&mut self, value: u32)
[src]
pub fn set_buflen(&mut self, value: u32)
[src]
pub fn syscalls_mut(&mut self) -> &mut [u8]
[src]
pub fn fields_mut(&mut self) -> &mut [u8]
[src]
pub fn set_field(&mut self, position: usize, value: u32)
[src]
pub fn values_mut(&mut self) -> &mut [u8]
[src]
pub fn set_value(&mut self, position: usize, value: u32)
[src]
pub fn field_flags_mut(&mut self) -> &mut [u8]
[src]
pub fn set_field_flags(&mut self, position: usize, value: u32)
[src]
pub fn buf_mut(&mut self) -> &mut [u8]
[src]
Trait Implementations
impl<T: Clone> Clone for RuleBuffer<T>
[src]
fn clone(&self) -> RuleBuffer<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for RuleBuffer<T>
[src]
impl<T: Eq> Eq for RuleBuffer<T>
[src]
impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleBuffer<&'a T>> for RuleMessage
[src]
fn parse(buf: &RuleBuffer<&'a T>) -> Result<Self, DecodeError>
[src]
impl<T: PartialEq> PartialEq<RuleBuffer<T>> for RuleBuffer<T>
[src]
fn eq(&self, other: &RuleBuffer<T>) -> bool
[src]
fn ne(&self, other: &RuleBuffer<T>) -> bool
[src]
impl<T> StructuralEq for RuleBuffer<T>
[src]
impl<T> StructuralPartialEq for RuleBuffer<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for RuleBuffer<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for RuleBuffer<T> where
T: Send,
T: Send,
impl<T> Sync for RuleBuffer<T> where
T: Sync,
T: Sync,
impl<T> Unpin for RuleBuffer<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for RuleBuffer<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,