Function loirc::connect
[−]
[src]
pub fn connect<A: AsRef<str>>(address: A, reco_settings: ReconnectionSettings, encoding: EncodingRef) -> Result<(Writer, Reader)>
Create a connection to the given address.
A Writer
/Reader
pair is returned. If the connection fails,
an error is returned.
If you don't want to reconnect, use ReconnectionSettings::DoNotReconnect
.