Skip to main content

install_connector

Function install_connector 

Source
pub fn install_connector(
    connector: Box<dyn Connector>,
) -> Result<(), ConnectorAlreadyInstalled>
Expand description

Make connector the source of every connection that dial opens.

The connector stays installed for the life of the process. Install it before the first connection: a connection that is already open keeps its socket.

ยงErrors

Returns ConnectorAlreadyInstalled if the process already has a connector. The installed connector stays, and connector is dropped.