pub enum CharSocket {
Tcp(CharSocketTcp),
Uds(CharSocketUds),
}Variants§
Tcp(CharSocketTcp)
Uds(CharSocketUds)
Trait Implementations§
Source§impl Arbitrary for CharSocket
impl Arbitrary for CharSocket
Source§type Parameters = (<CharSocketTcp as Arbitrary>::Parameters, <CharSocketUds as Arbitrary>::Parameters)
type Parameters = (<CharSocketTcp as Arbitrary>::Parameters, <CharSocketUds 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<<CharSocketTcp as Arbitrary>::Strategy, fn(CharSocketTcp) -> CharSocket>>), (u32, Arc<Map<<CharSocketUds as Arbitrary>::Strategy, fn(CharSocketUds) -> CharSocket>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<CharSocketTcp as Arbitrary>::Strategy, fn(CharSocketTcp) -> CharSocket>>), (u32, Arc<Map<<CharSocketUds as Arbitrary>::Strategy, fn(CharSocketUds) -> CharSocket>>))>
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 CharSocket
impl Clone for CharSocket
Source§fn clone(&self) -> CharSocket
fn clone(&self) -> CharSocket
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 CharSocket
impl Debug for CharSocket
Source§impl Hash for CharSocket
impl Hash for CharSocket
Source§impl Ord for CharSocket
impl Ord for CharSocket
Source§fn cmp(&self, other: &CharSocket) -> Ordering
fn cmp(&self, other: &CharSocket) -> 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 CharSocket
impl PartialEq for CharSocket
Source§impl PartialOrd for CharSocket
impl PartialOrd for CharSocket
impl Eq for CharSocket
impl StructuralPartialEq for CharSocket
Auto Trait Implementations§
impl Freeze for CharSocket
impl RefUnwindSafe for CharSocket
impl Send for CharSocket
impl Sync for CharSocket
impl Unpin for CharSocket
impl UnsafeUnpin for CharSocket
impl UnwindSafe for CharSocket
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