Enum qapi_qmp::Netdev[][src]

pub enum Netdev {
    hubport {
        id: String,
        hubport: NetdevHubPortOptions,
    },
    bridge {
        id: String,
        bridge: NetdevBridgeOptions,
    },
    nic {
        id: String,
        nic: NetLegacyNicOptions,
    },
    l2tpv3 {
        id: String,
        l2tpv3: NetdevL2TPv3Options,
    },
    netmap {
        id: String,
        netmap: NetdevNetmapOptions,
    },
    user {
        id: String,
        user: NetdevUserOptions,
    },
    vde {
        id: String,
        vde: NetdevVdeOptions,
    },
    tap {
        id: String,
        tap: NetdevTapOptions,
    },
    socket {
        id: String,
        socket: NetdevSocketOptions,
    },
    vhost_user {
        id: String,
        vhost_user: NetdevVhostUserOptions,
    },
    vhost_vdpa {
        id: String,
        vhost_vdpa: NetdevVhostVDPAOptions,
    },
}

Variants

hubport

Fields of hubport

id: Stringhubport: NetdevHubPortOptions
bridge

Fields of bridge

id: Stringbridge: NetdevBridgeOptions
nic

Fields of nic

id: Stringnic: NetLegacyNicOptions
l2tpv3

Fields of l2tpv3

id: Stringl2tpv3: NetdevL2TPv3Options
netmap

Fields of netmap

id: Stringnetmap: NetdevNetmapOptions
user

Fields of user

id: Stringuser: NetdevUserOptions
vde

Fields of vde

id: Stringvde: NetdevVdeOptions
tap

Fields of tap

id: Stringtap: NetdevTapOptions
socket

Fields of socket

id: Stringsocket: NetdevSocketOptions
vhost_user

Fields of vhost_user

id: Stringvhost_user: NetdevVhostUserOptions
vhost_vdpa

Fields of vhost_vdpa

id: Stringvhost_vdpa: NetdevVhostVDPAOptions

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.