pub struct UdevMonitorNetlinkHeader { /* private fields */ }Expand description
Represents a UDEV Netlink header.
Implementations§
Source§impl UdevMonitorNetlinkHeader
impl UdevMonitorNetlinkHeader
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new UdevMonitorNetlinkHeader.
Sourcepub fn prefix(&self) -> &str
pub fn prefix(&self) -> &str
Gets a string representation of the UdevMonitorNetlinkHeader prefix.
Sourcepub const fn header_size(&self) -> u32
pub const fn header_size(&self) -> u32
Gets the total size of the UdevMonitorNetlinkHeader.
Sourcepub const fn properties_off(&self) -> u32
pub const fn properties_off(&self) -> u32
Gets the properties buffer offset.
Sourcepub fn set_properties_off(&mut self, val: u32)
pub fn set_properties_off(&mut self, val: u32)
Sets the properties buffer offset.
Sourcepub fn with_properties_off(self, val: u32) -> Self
pub fn with_properties_off(self, val: u32) -> Self
Builder function that sets the properties buffer offset.
Sourcepub const fn properties_len(&self) -> u32
pub const fn properties_len(&self) -> u32
Gets the properties buffer length.
Sourcepub fn set_properties_len(&mut self, val: u32)
pub fn set_properties_len(&mut self, val: u32)
Sets the properties buffer legnth.
Sourcepub fn with_properties_len(self, val: u32) -> Self
pub fn with_properties_len(self, val: u32) -> Self
Builder function that sets the properties buffer length.
Sourcepub const fn filter_subsystem_hash(&self) -> u32
pub const fn filter_subsystem_hash(&self) -> u32
Gets the filter subsystem hash.
Sourcepub fn set_filter_subsystem_hash(&mut self, val: u32)
pub fn set_filter_subsystem_hash(&mut self, val: u32)
Sets the filter subsystem hash.
Sourcepub fn with_filter_subsystem_hash(self, val: u32) -> Self
pub fn with_filter_subsystem_hash(self, val: u32) -> Self
Builder function that sets the filter subsystem hash.
Sourcepub const fn filter_devtype_hash(&self) -> u32
pub const fn filter_devtype_hash(&self) -> u32
Gets the filter devtype hash.
Sourcepub fn set_filter_devtype_hash(&mut self, val: u32)
pub fn set_filter_devtype_hash(&mut self, val: u32)
Sets the filter devtype hash.
Sourcepub fn with_filter_devtype_hash(self, val: u32) -> Self
pub fn with_filter_devtype_hash(self, val: u32) -> Self
Builder function that sets the filter devtype hash.
Sourcepub const fn filter_tag_bloom_hi(&self) -> u32
pub const fn filter_tag_bloom_hi(&self) -> u32
Gets the filter tag bloom hash high bits.
Sourcepub fn set_filter_tag_bloom_hi(&mut self, val: u32)
pub fn set_filter_tag_bloom_hi(&mut self, val: u32)
Sets the filter tag bloom hash high bits.
Sourcepub fn with_filter_tag_bloom_hi(self, val: u32) -> Self
pub fn with_filter_tag_bloom_hi(self, val: u32) -> Self
Builder function that sets the filter tag bloom hash high bits.
Sourcepub const fn filter_tag_bloom_lo(&self) -> u32
pub const fn filter_tag_bloom_lo(&self) -> u32
Gets the filter tag bloom hash low bits.
Sourcepub fn set_filter_tag_bloom_lo(&mut self, val: u32)
pub fn set_filter_tag_bloom_lo(&mut self, val: u32)
Sets the filter tag bloom hash low bits.
Sourcepub fn with_filter_tag_bloom_lo(self, val: u32) -> Self
pub fn with_filter_tag_bloom_lo(self, val: u32) -> Self
Builder function that sets the filter tag bloom hash low bits.
Sourcepub const fn prefix_offset() -> usize
pub const fn prefix_offset() -> usize
prefix field offset.
Sourcepub const fn magic_offset() -> usize
pub const fn magic_offset() -> usize
magic field offset.
Sourcepub const fn header_size_offset() -> usize
pub const fn header_size_offset() -> usize
header_size field offset.
Sourcepub const fn properties_off_offset() -> usize
pub const fn properties_off_offset() -> usize
properties_off field offset.
Sourcepub const fn properties_len_offset() -> usize
pub const fn properties_len_offset() -> usize
properties_len field offset.
Sourcepub const fn filter_subsystem_hash_offset() -> usize
pub const fn filter_subsystem_hash_offset() -> usize
filter_subsystem_hash field offset.
Sourcepub const fn filter_devtype_hash_offset() -> usize
pub const fn filter_devtype_hash_offset() -> usize
filter_devtype_hash field offset.
Sourcepub const fn filter_tag_bloom_hi_offset() -> usize
pub const fn filter_tag_bloom_hi_offset() -> usize
filter_tag_bloom_hi field offset.
Sourcepub const fn filter_tag_bloom_lo_offset() -> usize
pub const fn filter_tag_bloom_lo_offset() -> usize
filter_tag_bloom_lo field offset.
Trait Implementations§
Source§impl Clone for UdevMonitorNetlinkHeader
impl Clone for UdevMonitorNetlinkHeader
Source§fn clone(&self) -> UdevMonitorNetlinkHeader
fn clone(&self) -> UdevMonitorNetlinkHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more