Struct netlink_packet_audit::status::StatusMessageBuffer
source · #[non_exhaustive]pub struct StatusMessageBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> StatusMessageBuffer<T>
impl<T: AsRef<[u8]>> StatusMessageBuffer<T>
pub fn new(buffer: T) -> StatusMessageBuffer<T>
pub fn new_checked(buffer: T) -> Result<StatusMessageBuffer<T>, DecodeError>
pub fn into_inner(self) -> T
pub fn mask(&self) -> u32
pub fn enabled(&self) -> u32
pub fn failure(&self) -> u32
pub fn pid(&self) -> u32
pub fn rate_limiting(&self) -> u32
pub fn backlog_limit(&self) -> u32
pub fn lost(&self) -> u32
pub fn backlog(&self) -> u32
pub fn feature_bitmap(&self) -> u32
pub fn backlog_wait_time(&self) -> u32
source§impl<T: AsRef<[u8]> + AsMut<[u8]>> StatusMessageBuffer<T>
impl<T: AsRef<[u8]> + AsMut<[u8]>> StatusMessageBuffer<T>
pub fn set_mask(&mut self, value: u32)
pub fn set_enabled(&mut self, value: u32)
pub fn set_failure(&mut self, value: u32)
pub fn set_pid(&mut self, value: u32)
pub fn set_rate_limiting(&mut self, value: u32)
pub fn set_backlog_limit(&mut self, value: u32)
pub fn set_lost(&mut self, value: u32)
pub fn set_backlog(&mut self, value: u32)
pub fn set_feature_bitmap(&mut self, value: u32)
pub fn set_backlog_wait_time(&mut self, value: u32)
Trait Implementations§
source§impl<T: Clone> Clone for StatusMessageBuffer<T>
impl<T: Clone> Clone for StatusMessageBuffer<T>
source§fn clone(&self) -> StatusMessageBuffer<T>
fn clone(&self) -> StatusMessageBuffer<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 StatusMessageBuffer<T>
impl<T: Debug> Debug for StatusMessageBuffer<T>
source§impl<T: AsRef<[u8]>> Parseable<StatusMessageBuffer<T>> for StatusMessage
impl<T: AsRef<[u8]>> Parseable<StatusMessageBuffer<T>> for StatusMessage
source§fn parse(buf: &StatusMessageBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &StatusMessageBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl<T: PartialEq> PartialEq<StatusMessageBuffer<T>> for StatusMessageBuffer<T>
impl<T: PartialEq> PartialEq<StatusMessageBuffer<T>> for StatusMessageBuffer<T>
source§fn eq(&self, other: &StatusMessageBuffer<T>) -> bool
fn eq(&self, other: &StatusMessageBuffer<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for StatusMessageBuffer<T>
impl<T> StructuralEq for StatusMessageBuffer<T>
impl<T> StructuralPartialEq for StatusMessageBuffer<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for StatusMessageBuffer<T>where T: RefUnwindSafe,
impl<T> Send for StatusMessageBuffer<T>where T: Send,
impl<T> Sync for StatusMessageBuffer<T>where T: Sync,
impl<T> Unpin for StatusMessageBuffer<T>where T: Unpin,
impl<T> UnwindSafe for StatusMessageBuffer<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