pub enum Socket {
SocketRegular(SocketRegular),
Multicast(SocketMulticast),
UDPTunnel(SocketUdpTunnel),
}Expand description
The socket backend variants supported by this crate.
Variants§
Trait Implementations§
Source§impl Arbitrary for Socket
impl Arbitrary for Socket
Source§type Parameters = (<SocketRegular as Arbitrary>::Parameters, <SocketMulticast as Arbitrary>::Parameters, <SocketUdpTunnel as Arbitrary>::Parameters)
type Parameters = (<SocketRegular as Arbitrary>::Parameters, <SocketMulticast as Arbitrary>::Parameters, <SocketUdpTunnel 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<<SocketRegular as Arbitrary>::Strategy, fn(SocketRegular) -> Socket>>), (u32, Arc<Map<<SocketMulticast as Arbitrary>::Strategy, fn(SocketMulticast) -> Socket>>), (u32, Arc<Map<<SocketUdpTunnel as Arbitrary>::Strategy, fn(SocketUdpTunnel) -> Socket>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<SocketRegular as Arbitrary>::Strategy, fn(SocketRegular) -> Socket>>), (u32, Arc<Map<<SocketMulticast as Arbitrary>::Strategy, fn(SocketMulticast) -> Socket>>), (u32, Arc<Map<<SocketUdpTunnel as Arbitrary>::Strategy, fn(SocketUdpTunnel) -> Socket>>))>
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 Socket
impl Ord for Socket
Source§impl PartialOrd for Socket
impl PartialOrd for Socket
Source§impl ToCommand for Socket
impl ToCommand for Socket
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 Socket
impl StructuralPartialEq for Socket
Auto Trait Implementations§
impl Freeze for Socket
impl RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl UnsafeUnpin for Socket
impl UnwindSafe for Socket
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