pub enum Netdev {
Show 14 variants
bridge {
id: String,
bridge: NetdevBridgeOptions,
},
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,
},
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,
},
}Variants
bridge
hubport
l2tpv3
netmap
nic
socket
tap
user
vde
vhost_user
vhost_vdpa
vmnet_bridged
vmnet_host
vmnet_shared
Implementations
sourceimpl Netdev
impl Netdev
pub fn type_(&self) -> NetClientDriver
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Netdev
impl<'de> Deserialize<'de> for Netdev
sourcefn 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
sourceimpl From<(NetLegacyNicOptions, String)> for Netdev
impl From<(NetLegacyNicOptions, String)> for Netdev
sourcefn from(val: (NetLegacyNicOptions, String)) -> Self
fn from(val: (NetLegacyNicOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevBridgeOptions, String)> for Netdev
impl From<(NetdevBridgeOptions, String)> for Netdev
sourcefn from(val: (NetdevBridgeOptions, String)) -> Self
fn from(val: (NetdevBridgeOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevHubPortOptions, String)> for Netdev
impl From<(NetdevHubPortOptions, String)> for Netdev
sourcefn from(val: (NetdevHubPortOptions, String)) -> Self
fn from(val: (NetdevHubPortOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevL2TPv3Options, String)> for Netdev
impl From<(NetdevL2TPv3Options, String)> for Netdev
sourcefn from(val: (NetdevL2TPv3Options, String)) -> Self
fn from(val: (NetdevL2TPv3Options, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevNetmapOptions, String)> for Netdev
impl From<(NetdevNetmapOptions, String)> for Netdev
sourcefn from(val: (NetdevNetmapOptions, String)) -> Self
fn from(val: (NetdevNetmapOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevSocketOptions, String)> for Netdev
impl From<(NetdevSocketOptions, String)> for Netdev
sourcefn from(val: (NetdevSocketOptions, String)) -> Self
fn from(val: (NetdevSocketOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevTapOptions, String)> for Netdev
impl From<(NetdevTapOptions, String)> for Netdev
sourcefn from(val: (NetdevTapOptions, String)) -> Self
fn from(val: (NetdevTapOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevUserOptions, String)> for Netdev
impl From<(NetdevUserOptions, String)> for Netdev
sourcefn from(val: (NetdevUserOptions, String)) -> Self
fn from(val: (NetdevUserOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevVdeOptions, String)> for Netdev
impl From<(NetdevVdeOptions, String)> for Netdev
sourcefn from(val: (NetdevVdeOptions, String)) -> Self
fn from(val: (NetdevVdeOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevVhostUserOptions, String)> for Netdev
impl From<(NetdevVhostUserOptions, String)> for Netdev
sourcefn from(val: (NetdevVhostUserOptions, String)) -> Self
fn from(val: (NetdevVhostUserOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevVhostVDPAOptions, String)> for Netdev
impl From<(NetdevVhostVDPAOptions, String)> for Netdev
sourcefn from(val: (NetdevVhostVDPAOptions, String)) -> Self
fn from(val: (NetdevVhostVDPAOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevVmnetBridgedOptions, String)> for Netdev
impl From<(NetdevVmnetBridgedOptions, String)> for Netdev
sourcefn from(val: (NetdevVmnetBridgedOptions, String)) -> Self
fn from(val: (NetdevVmnetBridgedOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<(NetdevVmnetHostOptions, String)> for Netdev
impl From<(NetdevVmnetHostOptions, String)> for Netdev
sourcefn from(val: (NetdevVmnetHostOptions, String)) -> Self
fn from(val: (NetdevVmnetHostOptions, String)) -> Self
Converts to this type from the input type.
sourcefn from(val: (NetdevVmnetSharedOptions, String)) -> Self
fn from(val: (NetdevVmnetSharedOptions, String)) -> Self
Converts to this type from the input type.
sourceimpl From<Netdev> for netdev_add
impl From<Netdev> for netdev_add
Auto Trait Implementations
impl RefUnwindSafe for Netdev
impl Send for Netdev
impl Sync for Netdev
impl Unpin for Netdev
impl UnwindSafe for Netdev
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more