pub enum NetDev {
}Variants§
User(User)
Passt(Passt)
Tap(Tap)
Bridge(Bridge)
Socket(Socket)
Stream(Stream)
Dgram(Dgram)
Vde(Vde)
Netmap(NetMap)
AfXdp(AfXdp)
VhostUser(VhostUser)
VhostVdpa(VhostVdpa)
VmnetHost(VmnetHost)
VmnetBridged(VmnetBridged)
Hubport(Hubport)
Trait Implementations§
Source§impl Arbitrary for NetDev
impl Arbitrary for NetDev
Source§type Parameters = (<User as Arbitrary>::Parameters, <Passt as Arbitrary>::Parameters, <Tap as Arbitrary>::Parameters, <Bridge as Arbitrary>::Parameters, <Socket as Arbitrary>::Parameters, <Stream as Arbitrary>::Parameters, <Dgram as Arbitrary>::Parameters, <Vde as Arbitrary>::Parameters, <NetMap as Arbitrary>::Parameters, (<AfXdp as Arbitrary>::Parameters, <VhostUser as Arbitrary>::Parameters, <VhostVdpa as Arbitrary>::Parameters, <VmnetHost as Arbitrary>::Parameters, <VmnetShared as Arbitrary>::Parameters, <VmnetBridged as Arbitrary>::Parameters, <Hubport as Arbitrary>::Parameters))
type Parameters = (<User as Arbitrary>::Parameters, <Passt as Arbitrary>::Parameters, <Tap as Arbitrary>::Parameters, <Bridge as Arbitrary>::Parameters, <Socket as Arbitrary>::Parameters, <Stream as Arbitrary>::Parameters, <Dgram as Arbitrary>::Parameters, <Vde as Arbitrary>::Parameters, <NetMap as Arbitrary>::Parameters, (<AfXdp as Arbitrary>::Parameters, <VhostUser as Arbitrary>::Parameters, <VhostVdpa as Arbitrary>::Parameters, <VmnetHost as Arbitrary>::Parameters, <VmnetShared as Arbitrary>::Parameters, <VmnetBridged as Arbitrary>::Parameters, <Hubport as Arbitrary>::Parameters))
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<Map<<User as Arbitrary>::Strategy, fn(User) -> NetDev>>), (u32, Arc<Map<<Passt as Arbitrary>::Strategy, fn(Passt) -> NetDev>>), (u32, Arc<Map<<Tap as Arbitrary>::Strategy, fn(Tap) -> NetDev>>), (u32, Arc<Map<<Bridge as Arbitrary>::Strategy, fn(Bridge) -> NetDev>>), (u32, Arc<Map<<Socket as Arbitrary>::Strategy, fn(Socket) -> NetDev>>), (u32, Arc<Map<<Stream as Arbitrary>::Strategy, fn(Stream) -> NetDev>>), (u32, Arc<Map<<Dgram as Arbitrary>::Strategy, fn(Dgram) -> NetDev>>), (u32, Arc<Map<<Vde as Arbitrary>::Strategy, fn(Vde) -> NetDev>>), (u32, Arc<Map<<NetMap as Arbitrary>::Strategy, fn(NetMap) -> NetDev>>), (u32, Arc<TupleUnion<((u32, Arc<Map<<AfXdp as Arbitrary>::Strategy, fn(AfXdp) -> NetDev>>), (u32, Arc<Map<<VhostUser as Arbitrary>::Strategy, fn(VhostUser) -> NetDev>>), (u32, Arc<Map<<VhostVdpa as Arbitrary>::Strategy, fn(VhostVdpa) -> NetDev>>), (u32, Arc<Map<<VmnetHost as Arbitrary>::Strategy, fn(VmnetHost) -> NetDev>>), (u32, Arc<Map<<VmnetShared as Arbitrary>::Strategy, fn(VmnetShared) -> NetDev>>), (u32, Arc<Map<<VmnetBridged as Arbitrary>::Strategy, fn(VmnetBridged) -> NetDev>>), (u32, Arc<Map<<Hubport as Arbitrary>::Strategy, fn(Hubport) -> NetDev>>))>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<User as Arbitrary>::Strategy, fn(User) -> NetDev>>), (u32, Arc<Map<<Passt as Arbitrary>::Strategy, fn(Passt) -> NetDev>>), (u32, Arc<Map<<Tap as Arbitrary>::Strategy, fn(Tap) -> NetDev>>), (u32, Arc<Map<<Bridge as Arbitrary>::Strategy, fn(Bridge) -> NetDev>>), (u32, Arc<Map<<Socket as Arbitrary>::Strategy, fn(Socket) -> NetDev>>), (u32, Arc<Map<<Stream as Arbitrary>::Strategy, fn(Stream) -> NetDev>>), (u32, Arc<Map<<Dgram as Arbitrary>::Strategy, fn(Dgram) -> NetDev>>), (u32, Arc<Map<<Vde as Arbitrary>::Strategy, fn(Vde) -> NetDev>>), (u32, Arc<Map<<NetMap as Arbitrary>::Strategy, fn(NetMap) -> NetDev>>), (u32, Arc<TupleUnion<((u32, Arc<Map<<AfXdp as Arbitrary>::Strategy, fn(AfXdp) -> NetDev>>), (u32, Arc<Map<<VhostUser as Arbitrary>::Strategy, fn(VhostUser) -> NetDev>>), (u32, Arc<Map<<VhostVdpa as Arbitrary>::Strategy, fn(VhostVdpa) -> NetDev>>), (u32, Arc<Map<<VmnetHost as Arbitrary>::Strategy, fn(VmnetHost) -> NetDev>>), (u32, Arc<Map<<VmnetShared as Arbitrary>::Strategy, fn(VmnetShared) -> NetDev>>), (u32, Arc<Map<<VmnetBridged as Arbitrary>::Strategy, fn(VmnetBridged) -> NetDev>>), (u32, Arc<Map<<Hubport as Arbitrary>::Strategy, fn(Hubport) -> NetDev>>))>>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
Source§impl Ord for NetDev
impl Ord for NetDev
Source§impl PartialOrd for NetDev
impl PartialOrd for NetDev
Source§impl ToCommand for NetDev
impl ToCommand for NetDev
Source§fn command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()Source§fn to_args(&self) -> Vec<String>
fn to_args(&self) -> Vec<String>
Convert to a type suitable to pass to
std::process::Command::args()fn has_args(&self) -> bool
Source§fn to_command(&self) -> Vec<String>
fn to_command(&self) -> Vec<String>
Construct the full command in keep in pieces
Source§fn to_single_command(&self) -> String
fn to_single_command(&self) -> String
Construct the full command as a single
StringSource§fn to_single_arg(&self) -> String
fn to_single_arg(&self) -> String
Construct only the args as a single
Stringimpl Eq for NetDev
impl StructuralPartialEq for NetDev
Auto Trait Implementations§
impl Freeze for NetDev
impl RefUnwindSafe for NetDev
impl Send for NetDev
impl Sync for NetDev
impl Unpin for NetDev
impl UnsafeUnpin 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