pub enum SpecialDevice {
}Variants§
VC(Option<VC>)
Pty(Option<PathBuf>)
None
Null
Chardev(String)
Dev(String)
Parport(usize)
File(PathBuf)
Stdio
Pipe(PathBuf)
Com(usize)
Udp(Udp)
Tcp(Tcp)
Telnet(Telnet)
Websocket(Websocket)
Unix(Unix)
Mon(String)
Braille
Msmouse
Trait Implementations§
Source§impl Arbitrary for SpecialDevice
impl Arbitrary for SpecialDevice
Source§type Parameters = (<Option<VC> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters, <PathBuf as Arbitrary>::Parameters, <PathBuf as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters, <Udp as Arbitrary>::Parameters, (<Tcp as Arbitrary>::Parameters, <Telnet as Arbitrary>::Parameters, <Websocket as Arbitrary>::Parameters, <Unix as Arbitrary>::Parameters, <String as Arbitrary>::Parameters))
type Parameters = (<Option<VC> as Arbitrary>::Parameters, <Option<PathBuf> as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <String as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters, <PathBuf as Arbitrary>::Parameters, <PathBuf as Arbitrary>::Parameters, <usize as Arbitrary>::Parameters, <Udp as Arbitrary>::Parameters, (<Tcp as Arbitrary>::Parameters, <Telnet as Arbitrary>::Parameters, <Websocket as Arbitrary>::Parameters, <Unix as Arbitrary>::Parameters, <String 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<<Option<VC> as Arbitrary>::Strategy, fn(Option<VC>) -> SpecialDevice>>), (u32, Arc<Map<<Option<PathBuf> as Arbitrary>::Strategy, fn(Option<PathBuf>) -> SpecialDevice>>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(String) -> SpecialDevice>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(String) -> SpecialDevice>>), (u32, Arc<Map<<usize as Arbitrary>::Strategy, fn(usize) -> SpecialDevice>>), (u32, Arc<Map<<PathBuf as Arbitrary>::Strategy, fn(PathBuf) -> SpecialDevice>>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<TupleUnion<((u32, Arc<Map<<PathBuf as Arbitrary>::Strategy, fn(PathBuf) -> SpecialDevice>>), (u32, Arc<Map<<usize as Arbitrary>::Strategy, fn(usize) -> SpecialDevice>>), (u32, Arc<Map<<Udp as Arbitrary>::Strategy, fn(Udp) -> SpecialDevice>>), (u32, Arc<Map<<Tcp as Arbitrary>::Strategy, fn(Tcp) -> SpecialDevice>>), (u32, Arc<Map<<Telnet as Arbitrary>::Strategy, fn(Telnet) -> SpecialDevice>>), (u32, Arc<Map<<Websocket as Arbitrary>::Strategy, fn(Websocket) -> SpecialDevice>>), (u32, Arc<Map<<Unix as Arbitrary>::Strategy, fn(Unix) -> SpecialDevice>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(String) -> SpecialDevice>>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<fn() -> SpecialDevice>))>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<Option<VC> as Arbitrary>::Strategy, fn(Option<VC>) -> SpecialDevice>>), (u32, Arc<Map<<Option<PathBuf> as Arbitrary>::Strategy, fn(Option<PathBuf>) -> SpecialDevice>>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(String) -> SpecialDevice>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(String) -> SpecialDevice>>), (u32, Arc<Map<<usize as Arbitrary>::Strategy, fn(usize) -> SpecialDevice>>), (u32, Arc<Map<<PathBuf as Arbitrary>::Strategy, fn(PathBuf) -> SpecialDevice>>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<TupleUnion<((u32, Arc<Map<<PathBuf as Arbitrary>::Strategy, fn(PathBuf) -> SpecialDevice>>), (u32, Arc<Map<<usize as Arbitrary>::Strategy, fn(usize) -> SpecialDevice>>), (u32, Arc<Map<<Udp as Arbitrary>::Strategy, fn(Udp) -> SpecialDevice>>), (u32, Arc<Map<<Tcp as Arbitrary>::Strategy, fn(Tcp) -> SpecialDevice>>), (u32, Arc<Map<<Telnet as Arbitrary>::Strategy, fn(Telnet) -> SpecialDevice>>), (u32, Arc<Map<<Websocket as Arbitrary>::Strategy, fn(Websocket) -> SpecialDevice>>), (u32, Arc<Map<<Unix as Arbitrary>::Strategy, fn(Unix) -> SpecialDevice>>), (u32, Arc<Map<<String as Arbitrary>::Strategy, fn(String) -> SpecialDevice>>), (u32, Arc<fn() -> SpecialDevice>), (u32, Arc<fn() -> SpecialDevice>))>>))>
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 Clone for SpecialDevice
impl Clone for SpecialDevice
Source§fn clone(&self) -> SpecialDevice
fn clone(&self) -> SpecialDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpecialDevice
impl Debug for SpecialDevice
Source§impl FromStr for SpecialDevice
impl FromStr for SpecialDevice
Source§impl Hash for SpecialDevice
impl Hash for SpecialDevice
Source§impl Ord for SpecialDevice
impl Ord for SpecialDevice
Source§fn cmp(&self, other: &SpecialDevice) -> Ordering
fn cmp(&self, other: &SpecialDevice) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SpecialDevice
impl PartialEq for SpecialDevice
Source§impl PartialOrd for SpecialDevice
impl PartialOrd for SpecialDevice
Source§impl ToCommand for SpecialDevice
impl ToCommand for SpecialDevice
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 command(&self) -> String
fn command(&self) -> String
Convert to a type suitable to pass to
std::process::Command::new()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 SpecialDevice
impl StructuralPartialEq for SpecialDevice
Auto Trait Implementations§
impl Freeze for SpecialDevice
impl RefUnwindSafe for SpecialDevice
impl Send for SpecialDevice
impl Sync for SpecialDevice
impl Unpin for SpecialDevice
impl UnsafeUnpin for SpecialDevice
impl UnwindSafe for SpecialDevice
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