pub struct Family { /* private fields */ }Expand description
A generic netlink family.
Implementations§
Source§impl Family
impl Family
Sourcepub const fn const_new(
module: &ThisModule,
name: &[u8],
version: u32,
mcgrps: &'static [MulticastGroup],
) -> Family
pub const fn const_new( module: &ThisModule, name: &[u8], version: u32, mcgrps: &'static [MulticastGroup], ) -> Family
Creates a new Family instance.
Intended to be used from const context only. Will panic if provided with invalid arguments.
The name must be a nul-terminated string, but it is taken as &[u8] so that it can be used
more conveniently with the strings generated by bindgen.
Sourcepub fn has_listeners(&self, group: u32) -> bool
pub fn has_listeners(&self, group: u32) -> bool
Checks if there are any listeners for the given multicast group.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Family
impl !RefUnwindSafe for Family
impl !Send for Family
impl !Unpin for Family
impl !UnsafeUnpin for Family
impl UnwindSafe for Family
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> KnownSize for T
impl<T> KnownSize for T
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more