Enum Netdev

Source
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

Fields

§

vhost_vdpa

Fields

§

vmnet_bridged

Fields

§

vmnet_host

Fields

§

vmnet_shared

Fields

§

none(String)

Implementations§

Trait Implementations§

Source§

impl Clone for Netdev

Source§

fn clone(&self) -> Netdev

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Netdev

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Netdev

Source§

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

Source§

fn from(val: (NetLegacyNicOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevAFXDPOptions, String)> for Netdev

Source§

fn from(val: (NetdevAFXDPOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevBridgeOptions, String)> for Netdev

Source§

fn from(val: (NetdevBridgeOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevDgramOptions, String)> for Netdev

Source§

fn from(val: (NetdevDgramOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevHubPortOptions, String)> for Netdev

Source§

fn from(val: (NetdevHubPortOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevL2TPv3Options, String)> for Netdev

Source§

fn from(val: (NetdevL2TPv3Options, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevNetmapOptions, String)> for Netdev

Source§

fn from(val: (NetdevNetmapOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevSocketOptions, String)> for Netdev

Source§

fn from(val: (NetdevSocketOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevStreamOptions, String)> for Netdev

Source§

fn from(val: (NetdevStreamOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevTapOptions, String)> for Netdev

Source§

fn from(val: (NetdevTapOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevUserOptions, String)> for Netdev

Source§

fn from(val: (NetdevUserOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevVdeOptions, String)> for Netdev

Source§

fn from(val: (NetdevVdeOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevVhostUserOptions, String)> for Netdev

Source§

fn from(val: (NetdevVhostUserOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevVhostVDPAOptions, String)> for Netdev

Source§

fn from(val: (NetdevVhostVDPAOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevVmnetBridgedOptions, String)> for Netdev

Source§

fn from(val: (NetdevVmnetBridgedOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevVmnetHostOptions, String)> for Netdev

Source§

fn from(val: (NetdevVmnetHostOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<(NetdevVmnetSharedOptions, String)> for Netdev

Source§

fn from(val: (NetdevVmnetSharedOptions, String)) -> Self

Converts to this type from the input type.
Source§

impl From<Netdev> for netdev_add

Source§

fn from(val: Netdev) -> Self

Converts to this type from the input type.
Source§

impl Serialize for Netdev

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,