pub enum Netdev {
Show 18 variants
af_xdp {
id: String,
af_xdp: NetdevAFXDPOptions,
},
bridge {
id: String,
bridge: NetdevBridgeOptions,
},
dgram {
id: String,
dgram: NetdevDgramOptions,
},
hubport {
id: String,
hubport: NetdevHubPortOptions,
},
l2tpv3 {
id: String,
l2tpv3: NetdevL2TPv3Options,
},
netmap {
id: String,
netmap: NetdevNetmapOptions,
},
nic {
id: String,
nic: NetLegacyNicOptions,
},
socket {
id: String,
socket: NetdevSocketOptions,
},
stream {
id: String,
stream: NetdevStreamOptions,
},
tap {
id: String,
tap: NetdevTapOptions,
},
user {
id: String,
user: NetdevUserOptions,
},
vde {
id: String,
vde: NetdevVdeOptions,
},
vhost_user {
id: String,
vhost_user: NetdevVhostUserOptions,
},
vhost_vdpa {
id: String,
vhost_vdpa: NetdevVhostVDPAOptions,
},
vmnet_bridged {
id: String,
vmnet_bridged: NetdevVmnetBridgedOptions,
},
vmnet_host {
id: String,
vmnet_host: NetdevVmnetHostOptions,
},
vmnet_shared {
id: String,
vmnet_shared: NetdevVmnetSharedOptions,
},
none(String),
}
Variants§
af_xdp
bridge
dgram
hubport
l2tpv3
netmap
nic
socket
stream
tap
user
vde
vhost_user
vhost_vdpa
vmnet_bridged
vmnet_host
none(String)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Netdev
impl<'de> Deserialize<'de> for Netdev
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<(NetLegacyNicOptions, String)> for Netdev
impl From<(NetLegacyNicOptions, String)> for Netdev
Source§fn from(val: (NetLegacyNicOptions, String)) -> Self
fn from(val: (NetLegacyNicOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevAFXDPOptions, String)> for Netdev
impl From<(NetdevAFXDPOptions, String)> for Netdev
Source§fn from(val: (NetdevAFXDPOptions, String)) -> Self
fn from(val: (NetdevAFXDPOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevBridgeOptions, String)> for Netdev
impl From<(NetdevBridgeOptions, String)> for Netdev
Source§fn from(val: (NetdevBridgeOptions, String)) -> Self
fn from(val: (NetdevBridgeOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevDgramOptions, String)> for Netdev
impl From<(NetdevDgramOptions, String)> for Netdev
Source§fn from(val: (NetdevDgramOptions, String)) -> Self
fn from(val: (NetdevDgramOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevHubPortOptions, String)> for Netdev
impl From<(NetdevHubPortOptions, String)> for Netdev
Source§fn from(val: (NetdevHubPortOptions, String)) -> Self
fn from(val: (NetdevHubPortOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevL2TPv3Options, String)> for Netdev
impl From<(NetdevL2TPv3Options, String)> for Netdev
Source§fn from(val: (NetdevL2TPv3Options, String)) -> Self
fn from(val: (NetdevL2TPv3Options, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevNetmapOptions, String)> for Netdev
impl From<(NetdevNetmapOptions, String)> for Netdev
Source§fn from(val: (NetdevNetmapOptions, String)) -> Self
fn from(val: (NetdevNetmapOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevSocketOptions, String)> for Netdev
impl From<(NetdevSocketOptions, String)> for Netdev
Source§fn from(val: (NetdevSocketOptions, String)) -> Self
fn from(val: (NetdevSocketOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevStreamOptions, String)> for Netdev
impl From<(NetdevStreamOptions, String)> for Netdev
Source§fn from(val: (NetdevStreamOptions, String)) -> Self
fn from(val: (NetdevStreamOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevTapOptions, String)> for Netdev
impl From<(NetdevTapOptions, String)> for Netdev
Source§fn from(val: (NetdevTapOptions, String)) -> Self
fn from(val: (NetdevTapOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevUserOptions, String)> for Netdev
impl From<(NetdevUserOptions, String)> for Netdev
Source§fn from(val: (NetdevUserOptions, String)) -> Self
fn from(val: (NetdevUserOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevVdeOptions, String)> for Netdev
impl From<(NetdevVdeOptions, String)> for Netdev
Source§fn from(val: (NetdevVdeOptions, String)) -> Self
fn from(val: (NetdevVdeOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevVhostUserOptions, String)> for Netdev
impl From<(NetdevVhostUserOptions, String)> for Netdev
Source§fn from(val: (NetdevVhostUserOptions, String)) -> Self
fn from(val: (NetdevVhostUserOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevVhostVDPAOptions, String)> for Netdev
impl From<(NetdevVhostVDPAOptions, String)> for Netdev
Source§fn from(val: (NetdevVhostVDPAOptions, String)) -> Self
fn from(val: (NetdevVhostVDPAOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevVmnetBridgedOptions, String)> for Netdev
impl From<(NetdevVmnetBridgedOptions, String)> for Netdev
Source§fn from(val: (NetdevVmnetBridgedOptions, String)) -> Self
fn from(val: (NetdevVmnetBridgedOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<(NetdevVmnetHostOptions, String)> for Netdev
impl From<(NetdevVmnetHostOptions, String)> for Netdev
Source§fn from(val: (NetdevVmnetHostOptions, String)) -> Self
fn from(val: (NetdevVmnetHostOptions, String)) -> Self
Converts to this type from the input type.
Source§fn from(val: (NetdevVmnetSharedOptions, String)) -> Self
fn from(val: (NetdevVmnetSharedOptions, String)) -> Self
Converts to this type from the input type.
Source§impl From<Netdev> for netdev_add
impl From<Netdev> for netdev_add
Auto Trait Implementations§
impl Freeze for Netdev
impl RefUnwindSafe for Netdev
impl Send for Netdev
impl Sync for Netdev
impl Unpin for Netdev
impl UnwindSafe for Netdev
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more