Struct iproute2::LinkSetRequest [−][src]
pub struct LinkSetRequest { /* fields omitted */ }
Methods
impl LinkSetRequest
[src]
impl LinkSetRequest
pub fn execute(
self
) -> impl Future<Item = (), Error = NetlinkIpError>
[src]
pub fn execute(
self
) -> impl Future<Item = (), Error = NetlinkIpError>
Execute the request
pub fn message_mut(&mut self) -> &mut LinkMessage
[src]
pub fn message_mut(&mut self) -> &mut LinkMessage
Return a mutable reference to the request
pub fn up(self) -> Self
[src]
pub fn up(self) -> Self
Set the link with the given index up (equivalent to ip link set dev DEV up
)
pub fn down(self) -> Self
[src]
pub fn down(self) -> Self
Set the link with the given index down (equivalent to ip link set dev DEV down
)
pub fn name(self, name: String) -> Self
[src]
pub fn name(self, name: String) -> Self
Set the name of the link with the given index (equivalent to ip link set DEV name NAME
)
pub fn mtu(self, mtu: u32) -> Self
[src]
pub fn mtu(self, mtu: u32) -> Self
Set the mtu of the link with the given index (equivalent to ip link set DEV mtu MTU
)
pub fn address(self, address: MacAddress) -> Self
[src]
pub fn address(self, address: MacAddress) -> Self
Set the hardware address of the link with the given index (equivalent to ip link set DEV address ADDRESS
)
Auto Trait Implementations
impl Send for LinkSetRequest
impl Send for LinkSetRequest
impl Sync for LinkSetRequest
impl Sync for LinkSetRequest