/// Connect to specific netlink management protocol.
/// A connection is required for all netlink(3) operations.
Connect to specific netlink management protocol.
A connection is required for all netlink(3) operations.
Connect to specific netlink management protocol . A connection is required for all netlink ( 3 ) operations .
fn connect(self, protocol: NlProtocols) -> Result<NlConnectedSocket> {
        let nlerr = unsafe { nl_connect(self.0, protocol as i32) };
        if nlerr != 0 {
            let msg = format!("nl_connect() failed for protocol: {}", protocol);
            bail!(nlerrmsg(nlerr, &msg));
        }
        Ok(NlConnectedSocket(self))
    }
fn connect ( self , protocol : NlProtocols ) -> Result < NlConnectedSocket > { let nlerr = unsafe { nl_connect ( self . 0 , protocol as i32 ) } ; if nlerr != 0 { let msg = format ! ( " " protocol ) ; bail ! ( nlerrmsg ( nlerr msg ) ) ; } Ok ( NlConnectedSocket ( self ) ) }
Connect to specific netlink management protocol.
Connect to specific netlink management protocol .
self
protocol
NlProtocols