14#ifndef LLVM_EXECUTIONENGINE_ORC_SHARED_CONNECTIONSPEC_H
15#define LLVM_EXECUTIONENGINE_ORC_SHARED_CONNECTIONSPEC_H
63 std::string Descriptor)
65 Descriptor(
std::
move(Descriptor)) {}
67 std::string Transport;
69 std::string Descriptor;
Tagged union holding either a T or a Error.
Represent a constant reference to a string, i.e.
The parsed form of a string describing one connection a process should establish with its peer:
StringRef getAction() const
The action name, e.g.
StringRef getTransport() const
The transport name, e.g. "tcp". Never empty.
static LLVM_ABI Expected< ConnectionSpec > parse(StringRef Spec)
Parses Spec as <transport>[:<action>]=<descriptor>.
StringRef getDescriptor() const
The transport-specific address. May be empty (e.g. "fd=").
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.