pub enum Stream {
StreamOverTcp(StreamOverTcp),
StreamOverUds(StreamOverUds),
StreamOverFd(StreamOverFd),
}Variants§
Trait Implementations§
Source§impl Arbitrary for Stream
impl Arbitrary for Stream
Source§type Parameters = (<StreamOverTcp as Arbitrary>::Parameters, <StreamOverUds as Arbitrary>::Parameters, <StreamOverFd as Arbitrary>::Parameters)
type Parameters = (<StreamOverTcp as Arbitrary>::Parameters, <StreamOverUds as Arbitrary>::Parameters, <StreamOverFd 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<<StreamOverTcp as Arbitrary>::Strategy, fn(StreamOverTcp) -> Stream>>), (u32, Arc<Map<<StreamOverUds as Arbitrary>::Strategy, fn(StreamOverUds) -> Stream>>), (u32, Arc<Map<<StreamOverFd as Arbitrary>::Strategy, fn(StreamOverFd) -> Stream>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<StreamOverTcp as Arbitrary>::Strategy, fn(StreamOverTcp) -> Stream>>), (u32, Arc<Map<<StreamOverUds as Arbitrary>::Strategy, fn(StreamOverUds) -> Stream>>), (u32, Arc<Map<<StreamOverFd as Arbitrary>::Strategy, fn(StreamOverFd) -> Stream>>))>
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 Stream
impl Ord for Stream
Source§impl PartialOrd for Stream
impl PartialOrd for Stream
Source§impl ToCommand for Stream
impl ToCommand for Stream
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 Stream
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl Freeze for Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnsafeUnpin for Stream
impl UnwindSafe for Stream
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