pub struct SocketRegular { /* private fields */ }Expand description
A -netdev socket,... backend using listen= and/or connect=.
Implementations§
Source§impl SocketRegular
impl SocketRegular
Sourcepub fn builder() -> SocketRegularBuilder
pub fn builder() -> SocketRegularBuilder
Create an instance of SocketRegular using the builder syntax
Trait Implementations§
Source§impl Arbitrary for SocketRegular
impl Arbitrary for SocketRegular
Source§type Parameters = (<String as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<HostAndMaybePort> as Arbitrary>::Parameters, <Option<HostAndPort> as Arbitrary>::Parameters)
type Parameters = (<String as Arbitrary>::Parameters, <Option<String> as Arbitrary>::Parameters, <Option<HostAndMaybePort> as Arbitrary>::Parameters, <Option<HostAndPort> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<HostAndMaybePort> as Arbitrary>::Strategy, <Option<HostAndPort> as Arbitrary>::Strategy), fn((String, Option<String>, Option<HostAndMaybePort>, Option<HostAndPort>)) -> SocketRegular>
type Strategy = Map<(<String as Arbitrary>::Strategy, <Option<String> as Arbitrary>::Strategy, <Option<HostAndMaybePort> as Arbitrary>::Strategy, <Option<HostAndPort> as Arbitrary>::Strategy), fn((String, Option<String>, Option<HostAndMaybePort>, Option<HostAndPort>)) -> SocketRegular>
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 SocketRegular
impl Clone for SocketRegular
Source§fn clone(&self) -> SocketRegular
fn clone(&self) -> SocketRegular
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 SocketRegular
impl Debug for SocketRegular
Source§impl FromStr for SocketRegular
impl FromStr for SocketRegular
Source§impl Hash for SocketRegular
impl Hash for SocketRegular
Source§impl Ord for SocketRegular
impl Ord for SocketRegular
Source§fn cmp(&self, other: &SocketRegular) -> Ordering
fn cmp(&self, other: &SocketRegular) -> 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 SocketRegular
impl PartialEq for SocketRegular
Source§impl PartialOrd for SocketRegular
impl PartialOrd for SocketRegular
Source§impl ToCommand for SocketRegular
impl ToCommand for SocketRegular
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 SocketRegular
impl StructuralPartialEq for SocketRegular
Auto Trait Implementations§
impl Freeze for SocketRegular
impl RefUnwindSafe for SocketRegular
impl Send for SocketRegular
impl Sync for SocketRegular
impl Unpin for SocketRegular
impl UnsafeUnpin for SocketRegular
impl UnwindSafe for SocketRegular
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