// Rename will set a new name to this net adapter
Rename will set a new name to this net adapter
// Rename will set a new name to this net adapter
func (n *NetAdapter) Rename(name string) error {
	n.lock.Lock()
	defer n.lock.Unlock()
	if n.Name == name {
		return nil
	}
	res, err := n.callFunction("Rename", name)
	if err != nil {
		return err
	}
	n = res
	return nil
}
func ( n * NetAdapter ) Rename ( name string ) error { n . lock . Lock ( ) defer n . lock . Unlock ( ) if n . Name == name { return nil } res , err := n . callFunction ( " " , name ) if err != nil { return err } n = res return nil }
Rename will set a new name to this net adapter
Rename will set a new name to this net adapter