pub struct UnixStreamConnectorCloneFactory<C>(/* private fields */);Available on 
target_family="unix" only.Expand description
Utility implementation of a UnixStreamConnectorFactory which is implemented
to allow one to use a Cloneable UnixStreamConnector as a UnixStreamConnectorFactory
by cloning itself.
This struct cannot be created by third party crates and instead is to be used via other API’s provided by this crate.
Trait Implementations§
Source§impl<C> Clone for UnixStreamConnectorCloneFactory<C>where
    C: Clone,
 
impl<C> Clone for UnixStreamConnectorCloneFactory<C>where
    C: Clone,
Source§impl<C> Debug for UnixStreamConnectorCloneFactory<C>where
    C: Debug,
 
impl<C> Debug for UnixStreamConnectorCloneFactory<C>where
    C: Debug,
Source§impl<State, C> UnixStreamConnectorFactory<State> for UnixStreamConnectorCloneFactory<C>
 
impl<State, C> UnixStreamConnectorFactory<State> for UnixStreamConnectorCloneFactory<C>
Source§type Connector = C
 
type Connector = C
UnixStreamConnector created by this UnixStreamConnectorFactorySource§type Error = Infallible
 
type Error = Infallible
Error returned in case 
UnixStreamConnectorFactory was
not able to create a UnixStreamConnector.Source§fn make_connector(
    &self,
    ctx: Context<State>,
) -> impl Future<Output = Result<CreatedUnixStreamConnector<State, Self::Connector>, Self::Error>> + Send + '_
 
fn make_connector( &self, ctx: Context<State>, ) -> impl Future<Output = Result<CreatedUnixStreamConnector<State, Self::Connector>, Self::Error>> + Send + '_
Try to create a 
UnixStreamConnector, and return an error or otherwise.Auto Trait Implementations§
impl<C> Freeze for UnixStreamConnectorCloneFactory<C>where
    C: Freeze,
impl<C> RefUnwindSafe for UnixStreamConnectorCloneFactory<C>where
    C: RefUnwindSafe,
impl<C> Send for UnixStreamConnectorCloneFactory<C>where
    C: Send,
impl<C> Sync for UnixStreamConnectorCloneFactory<C>where
    C: Sync,
impl<C> Unpin for UnixStreamConnectorCloneFactory<C>where
    C: Unpin,
impl<C> UnwindSafe for UnixStreamConnectorCloneFactory<C>where
    C: UnwindSafe,
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