pub struct BridgeBuilder { /* private fields */ }
Expand description

Builder pattern for constructing networking bridges.

Example

Create a bridge named hello_world_br and attach two interfaces: eth0 and eth1.

  let result = BridgeBuilder::new("hello_world_br")
                .interface("eth0")
                .interface("eth1")
                .build();

Implementations§

Start building a new bridge, setting its interface name.

Override the name of the bridge.

Attach an interface to the bridge.

Note that this will fail silently if the interface name supplied cannot be converted into the appropriate interface index.

Remove an interface from the bridge.

Note that this will fail silently if the interface name supplied cannot be converted into the appropriate interface index.

Finalize the builder, creating the bridge and attaching any interfaces.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.