method TlsStream.peerSubject
RFC 2253 subject of the peer's leaf certificate ("" when it sent none, e.g. a client without mutual TLS).
Example:
use std.net { TlsStream }
fn who(s: &TlsStream) -> str {
s.peerSubject()
}pub(api) fn peerSubject() -> strС версии. 1.0.0-beta
Возвращает
str
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/net/tls.oxl:386