Struct rtnetlink::LinkSetRequest [−][src]
pub struct LinkSetRequest { /* fields omitted */ }
Implementations
Return a mutable reference to the request
Attach the link to a bridge (its master). This is equivalent to ip link set LINK master BRIDGE
. To succeed, both the bridge and the link that is being attached must be UP.
To Remove a link from a bridge, set its master to zero.
This is equvalent to ip link set LINK nomaster
Detach the link from its master. This is equivalent to ip link set LINK nomaster
.
To succeed, the link that is being detached must be UP.
Set the link with the given index up (equivalent to ip link set dev DEV up
)
Set the link with the given index down (equivalent to ip link set dev DEV down
)
Enable or disable promiscious mode of the link with the given index (equivalent to ip link set dev DEV promisc on/off
)
Enable or disable the ARP protocol of the link with the given index (equivalent to ip link set dev DEV arp on/off
)
Set the name of the link with the given index (equivalent to ip link set DEV name NAME
)
Set the mtu of the link with the given index (equivalent to ip link set DEV mtu MTU
)
Set the hardware address of the link with the given index (equivalent to ip link set DEV address ADDRESS
)
Move this network device into the network namespace of the process with the given pid
.
Move this network device into the network namespace corresponding to the given file descriptor.
Auto Trait Implementations
impl !RefUnwindSafe for LinkSetRequest
impl Send for LinkSetRequest
impl Sync for LinkSetRequest
impl Unpin for LinkSetRequest
impl !UnwindSafe for LinkSetRequest