pub enum Address {
Tcp(HostPort),
Udp(HostPort),
Http(HostPort),
Grpc(HostPort),
UnixStream(PathBuf),
UnixDatagram(PathBuf),
NamedPipe(String),
}Expand description
Where a courier operation goes, written as a URL.
See the crate documentation for each form.
Variants§
Tcp(HostPort)
tcp://<host>:<port>.
Udp(HostPort)
udp://<host>:<port>.
Http(HostPort)
http://<host>:<port>.
Grpc(HostPort)
grpc://<host>:<port>.
UnixStream(PathBuf)
unix://<path>: a Unix stream socket.
UnixDatagram(PathBuf)
unixgram://<path>: a Unix datagram socket.
NamedPipe(String)
pipe://<name>: the Windows named pipe \\.\pipe\<name>.
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more