pub fn create_endpoints<T: ServiceMarker>() -> Result<(ClientEnd<T>, ServerEnd<T>), Error> {
    let (client, server) = Channel::create().map_err(|e| Error::ChannelPairCreate(e.into()))?;
    let client_end = ClientEnd::<T>::new(client);
    let server_end = ServerEnd::new(server);
    Ok((client_end, server_end))
}
/// Creates client and server endpoints connected to by a channel.
Creates client and server endpoints connected to by a channel.
Creates client and server endpoints connected to by a channel .
pub fn create_endpoints<T: ServiceMarker>() -> Result<(ClientEnd<T>, ServerEnd<T>), Error> {
    let (client, server) = Channel::create().map_err(|e| Error::ChannelPairCreate(e.into()))?;
    let client_end = ClientEnd::<T>::new(client);
    let server_end = ServerEnd::new(server);
    Ok((client_end, server_end))
}
pub fn create_endpoints < T : ServiceMarker > ( ) -> Result < ( ClientEnd < T > , ServerEnd < T > ) , Error > { let ( client , server ) = Channel :: create ( ) . map_err ( | e | Error :: ChannelPairCreate ( e . into ( ) ) ) ? ; let client_end = ClientEnd :: < T > :: new ( client ) ; let server_end = ServerEnd :: new ( server ) ; Ok ( ( client_end , server_end ) ) }
Creates client and server endpoints connected to by a channel.
Creates client and server endpoints connected to by a channel .