[−][src]Trait fizyr_rpc::util::Connect
Trait for connecting transports to a remote address.
Associated Types
Loading content...Required methods
fn connect(address: Address, config: Self::Config) -> Self::Future
[src]
Create a new transport connected to a remote address.
Implementors
impl<'a, Address> Connect<'a, Address> for StreamTransport<TcpStream> where
Address: ToSocketAddrs + 'a,
[src]
Address: ToSocketAddrs + 'a,
type Future = Pin<Box<dyn Future<Output = Result<Self>> + 'a>>
fn connect(address: Address, config: Self::Config) -> Self::Future
[src]
impl<'a, Address> Connect<'a, Address> for StreamTransport<UnixStream> where
Address: AsRef<Path> + 'a,
[src]
Address: AsRef<Path> + 'a,
type Future = Pin<Box<dyn Future<Output = Result<Self>> + 'a>>
fn connect(address: Address, config: Self::Config) -> Self::Future
[src]
impl<'a, Address> Connect<'a, Address> for UnixTransport<UnixSeqpacket> where
Address: AsRef<Path> + 'a,
[src]
Address: AsRef<Path> + 'a,