pub fn add_mcast_group(
        &mut self,
        family: &str,
        mcast_group: &str,
    ) -> Result<&mut Self, NlError> {
        let group_num = self.sock.resolve_nl_mcast_group(family, mcast_group)?;
        let flag = match U32BitFlag::new(group_num) {
            Ok(f) => f,
            Err(_) => {
                return Err(NlError::new(
                    "You have hit a bug - \
                     the group number that was returned is larger than what can \
                     be represented by a u32 bitmask",
                ))
            }
        };
        self.mcast_ids += flag;
        Ok(self)
    }
/// Add a multicast group subscription by family and group name
Add a multicast group subscription by family and group name
Add a multicast group subscription by family and group name
pub fn add_mcast_group(
        &mut self,
        family: &str,
        mcast_group: &str,
    ) -> Result<&mut Self, NlError> {
        let group_num = self.sock.resolve_nl_mcast_group(family, mcast_group)?;
        let flag = match U32BitFlag::new(group_num) {
            Ok(f) => f,
            Err(_) => {
                return Err(NlError::new(
                    "You have hit a bug - \
                     the group number that was returned is larger than what can \
                     be represented by a u32 bitmask",
                ))
            }
        };
        self.mcast_ids += flag;
        Ok(self)
    }
pub fn add_mcast_group ( & mut self , family : & str , mcast_group : & str , ) -> Result < & mut Self , NlError > { let group_num = self . sock . resolve_nl_mcast_group ( family , mcast_group ) ? ; let flag = match U32BitFlag :: new ( group_num ) { Ok ( f ) => f , Err ( _ ) => { return Err ( NlError :: new ( " \
 \
 " , ) ) } } ; self . mcast_ids += flag ; Ok ( self ) }
Add a multicast group subscription by family and group name
Add a multicast group subscription by family and group name
&mut self
family
&str
mcast_group
&str
&mut self
family
&str
mcast_group
&str