pub fn list_mcast_membership(&self) -> Result<U32Bitmask, io::Error> {
        let mut grps = 0u32;
        let mut len = size_of::<u32>() as libc::socklen_t;
        match unsafe {
            libc::getsockopt(
                self.fd,
                libc::SOL_NETLINK,
                libc::NETLINK_LIST_MEMBERSHIPS,
                &mut grps as *mut _ as *mut libc::c_void,
                &mut len as *mut _ as *mut libc::socklen_t,
            )
        } {
            i if i == 0 => Ok(U32Bitmask::from(grps)),
            _ => Err(io::Error::last_os_error()),
        }
    }
/// List joined groups for a socket.
List joined groups for a socket.
List joined groups for a socket .
pub fn list_mcast_membership(&self) -> Result<U32Bitmask, io::Error> {
        let mut grps = 0u32;
        let mut len = size_of::<u32>() as libc::socklen_t;
        match unsafe {
            libc::getsockopt(
                self.fd,
                libc::SOL_NETLINK,
                libc::NETLINK_LIST_MEMBERSHIPS,
                &mut grps as *mut _ as *mut libc::c_void,
                &mut len as *mut _ as *mut libc::socklen_t,
            )
        } {
            i if i == 0 => Ok(U32Bitmask::from(grps)),
            _ => Err(io::Error::last_os_error()),
        }
    }
pub fn list_mcast_membership ( & self ) -> Result < U32Bitmask , io :: Error > { let mut grps = 0u32 ; let mut len = size_of :: < u32 > ( ) as libc :: socklen_t ; match unsafe { libc :: getsockopt ( self . fd , libc :: SOL_NETLINK , libc :: NETLINK_LIST_MEMBERSHIPS , & mut grps as * mut _ as * mut libc :: c_void , & mut len as * mut _ as * mut libc :: socklen_t , ) } { i if i == 0 => Ok ( U32Bitmask :: from ( grps ) ) , _ => Err ( io :: Error :: last_os_error ( ) ) , } }
List joined groups for a socket.
List joined groups for a socket .
&self
&self