pub enum CharDev {
Show 18 variants
Null(CharNull),
Socket(CharSocket),
Udp(CharUdp),
MsMouse(CharMsMouse),
Hub(CharHub),
Vc(CharVc),
RingBuf(CharRingBuf),
File(CharFile),
Pipe(CharPipe),
Win32Console(CharWin32Console),
Win32Serial(CharWin32Serial),
Pty(CharPty),
Stdio(CharStdio),
Braille(CharBraille),
Serial(CharSerial),
Parallel(CharParallel),
SpiceVmc(CharSpice),
SpicePort(CharSpice),
}Variants§
Null(CharNull)
Socket(CharSocket)
Udp(CharUdp)
MsMouse(CharMsMouse)
Hub(CharHub)
Vc(CharVc)
RingBuf(CharRingBuf)
File(CharFile)
Pipe(CharPipe)
Win32Console(CharWin32Console)
Win32Serial(CharWin32Serial)
Pty(CharPty)
Stdio(CharStdio)
Braille(CharBraille)
Serial(CharSerial)
Parallel(CharParallel)
SpiceVmc(CharSpice)
SpicePort(CharSpice)
Implementations§
Trait Implementations§
Source§impl Arbitrary for CharDev
impl Arbitrary for CharDev
Source§type Parameters = (<CharNull as Arbitrary>::Parameters, <CharSocket as Arbitrary>::Parameters, <CharUdp as Arbitrary>::Parameters, <CharMsMouse as Arbitrary>::Parameters, <CharHub as Arbitrary>::Parameters, <CharVc as Arbitrary>::Parameters, <CharRingBuf as Arbitrary>::Parameters, <CharFile as Arbitrary>::Parameters, <CharPipe as Arbitrary>::Parameters, (<CharWin32Console as Arbitrary>::Parameters, <CharWin32Serial as Arbitrary>::Parameters, <CharPty as Arbitrary>::Parameters, <CharStdio as Arbitrary>::Parameters, <CharBraille as Arbitrary>::Parameters, <CharSerial as Arbitrary>::Parameters, <CharParallel as Arbitrary>::Parameters, <CharSpice as Arbitrary>::Parameters, <CharSpice as Arbitrary>::Parameters))
type Parameters = (<CharNull as Arbitrary>::Parameters, <CharSocket as Arbitrary>::Parameters, <CharUdp as Arbitrary>::Parameters, <CharMsMouse as Arbitrary>::Parameters, <CharHub as Arbitrary>::Parameters, <CharVc as Arbitrary>::Parameters, <CharRingBuf as Arbitrary>::Parameters, <CharFile as Arbitrary>::Parameters, <CharPipe as Arbitrary>::Parameters, (<CharWin32Console as Arbitrary>::Parameters, <CharWin32Serial as Arbitrary>::Parameters, <CharPty as Arbitrary>::Parameters, <CharStdio as Arbitrary>::Parameters, <CharBraille as Arbitrary>::Parameters, <CharSerial as Arbitrary>::Parameters, <CharParallel as Arbitrary>::Parameters, <CharSpice as Arbitrary>::Parameters, <CharSpice 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<<CharNull as Arbitrary>::Strategy, fn(CharNull) -> CharDev>>), (u32, Arc<Map<<CharSocket as Arbitrary>::Strategy, fn(CharSocket) -> CharDev>>), (u32, Arc<Map<<CharUdp as Arbitrary>::Strategy, fn(CharUdp) -> CharDev>>), (u32, Arc<Map<<CharMsMouse as Arbitrary>::Strategy, fn(CharMsMouse) -> CharDev>>), (u32, Arc<Map<<CharHub as Arbitrary>::Strategy, fn(CharHub) -> CharDev>>), (u32, Arc<Map<<CharVc as Arbitrary>::Strategy, fn(CharVc) -> CharDev>>), (u32, Arc<Map<<CharRingBuf as Arbitrary>::Strategy, fn(CharRingBuf) -> CharDev>>), (u32, Arc<Map<<CharFile as Arbitrary>::Strategy, fn(CharFile) -> CharDev>>), (u32, Arc<Map<<CharPipe as Arbitrary>::Strategy, fn(CharPipe) -> CharDev>>), (u32, Arc<TupleUnion<((u32, Arc<Map<<CharWin32Console as Arbitrary>::Strategy, fn(CharWin32Console) -> CharDev>>), (u32, Arc<Map<<CharWin32Serial as Arbitrary>::Strategy, fn(CharWin32Serial) -> CharDev>>), (u32, Arc<Map<<CharPty as Arbitrary>::Strategy, fn(CharPty) -> CharDev>>), (u32, Arc<Map<<CharStdio as Arbitrary>::Strategy, fn(CharStdio) -> CharDev>>), (u32, Arc<Map<<CharBraille as Arbitrary>::Strategy, fn(CharBraille) -> CharDev>>), (u32, Arc<Map<<CharSerial as Arbitrary>::Strategy, fn(CharSerial) -> CharDev>>), (u32, Arc<Map<<CharParallel as Arbitrary>::Strategy, fn(CharParallel) -> CharDev>>), (u32, Arc<Map<<CharSpice as Arbitrary>::Strategy, fn(CharSpice) -> CharDev>>), (u32, Arc<Map<<CharSpice as Arbitrary>::Strategy, fn(CharSpice) -> CharDev>>))>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<CharNull as Arbitrary>::Strategy, fn(CharNull) -> CharDev>>), (u32, Arc<Map<<CharSocket as Arbitrary>::Strategy, fn(CharSocket) -> CharDev>>), (u32, Arc<Map<<CharUdp as Arbitrary>::Strategy, fn(CharUdp) -> CharDev>>), (u32, Arc<Map<<CharMsMouse as Arbitrary>::Strategy, fn(CharMsMouse) -> CharDev>>), (u32, Arc<Map<<CharHub as Arbitrary>::Strategy, fn(CharHub) -> CharDev>>), (u32, Arc<Map<<CharVc as Arbitrary>::Strategy, fn(CharVc) -> CharDev>>), (u32, Arc<Map<<CharRingBuf as Arbitrary>::Strategy, fn(CharRingBuf) -> CharDev>>), (u32, Arc<Map<<CharFile as Arbitrary>::Strategy, fn(CharFile) -> CharDev>>), (u32, Arc<Map<<CharPipe as Arbitrary>::Strategy, fn(CharPipe) -> CharDev>>), (u32, Arc<TupleUnion<((u32, Arc<Map<<CharWin32Console as Arbitrary>::Strategy, fn(CharWin32Console) -> CharDev>>), (u32, Arc<Map<<CharWin32Serial as Arbitrary>::Strategy, fn(CharWin32Serial) -> CharDev>>), (u32, Arc<Map<<CharPty as Arbitrary>::Strategy, fn(CharPty) -> CharDev>>), (u32, Arc<Map<<CharStdio as Arbitrary>::Strategy, fn(CharStdio) -> CharDev>>), (u32, Arc<Map<<CharBraille as Arbitrary>::Strategy, fn(CharBraille) -> CharDev>>), (u32, Arc<Map<<CharSerial as Arbitrary>::Strategy, fn(CharSerial) -> CharDev>>), (u32, Arc<Map<<CharParallel as Arbitrary>::Strategy, fn(CharParallel) -> CharDev>>), (u32, Arc<Map<<CharSpice as Arbitrary>::Strategy, fn(CharSpice) -> CharDev>>), (u32, Arc<Map<<CharSpice as Arbitrary>::Strategy, fn(CharSpice) -> CharDev>>))>>))>
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 CharDev
impl Ord for CharDev
Source§impl PartialOrd for CharDev
impl PartialOrd for CharDev
Source§impl ToCommand for CharDev
impl ToCommand for CharDev
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 CharDev
impl StructuralPartialEq for CharDev
Auto Trait Implementations§
impl Freeze for CharDev
impl RefUnwindSafe for CharDev
impl Send for CharDev
impl Sync for CharDev
impl Unpin for CharDev
impl UnsafeUnpin for CharDev
impl UnwindSafe for CharDev
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