Expand description
Peer identity for a connection, independent of transport.
Before 2.0 a connection’s peer was a bare SocketAddr, which only makes sense for
TCP/TLS. Local transports (Unix sockets, Windows named pipes, macOS XPC) identify
peers by process and by code identity — a codesign requirement, an executable
digest, a SID — and that has to survive all the way into the request context so
authorization and logging can see it.
PeerIdentity is #[non_exhaustive]: new transports may add variants without a
breaking release.
Structs§
- Extensions
- A type-keyed map for attaching arbitrary data to a connection or request.
- Local
Peer - A same-machine peer: OS-level process identity plus whatever code identity the transport was able to verify.
Enums§
- Attestation
- Whether — and how — the transport verified the peer’s code identity.
- Peer
Identity - Who is on the other end of a connection.