pub trait Display {
// Required method
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>;
}
Expand description
Format trait for an empty format, {}
.
Implementing this trait for a type will automatically implement the
ToString
trait for the type, allowing the usage
of the .to_string()
method. Prefer implementing
the Display
trait for a type, rather than ToString
.
Display
is similar to Debug
, but Display
is for user-facing
output, and so cannot be derived.
For more information on formatters, see the module-level documentation.
§Completeness and parseability
Display
for a type might not necessarily be a lossless or complete representation of the type.
It may omit internal state, precision, or other information the type does not consider important
for user-facing output, as determined by the type. As such, the output of Display
might not be
possible to parse, and even if it is, the result of parsing might not exactly match the original
value.
However, if a type has a lossless Display
implementation whose output is meant to be
conveniently machine-parseable and not just meant for human consumption, then the type may wish
to accept the same format in FromStr
, and document that usage. Having both Display
and
FromStr
implementations where the result of Display
cannot be parsed with FromStr
may
surprise users.
§Internationalization
Because a type can only have one Display
implementation, it is often preferable
to only implement Display
when there is a single most “obvious” way that
values can be formatted as text. This could mean formatting according to the
“invariant” culture and “undefined” locale, or it could mean that the type
display is designed for a specific culture/locale, such as developer logs.
If not all values have a justifiably canonical textual format or if you want
to support alternative formats not covered by the standard set of possible
formatting traits, the most flexible approach is display adapters: methods
like str::escape_default
or Path::display
which create a wrapper
implementing Display
to output the specific display format.
§Examples
Implementing Display
on a type:
use std::fmt;
struct Point {
x: i32,
y: i32,
}
impl fmt::Display for Point {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "({}, {})", self.x, self.y)
}
}
let origin = Point { x: 0, y: 0 };
assert_eq!(format!("The origin is: {origin}"), "The origin is: (0, 0)");
Required Methods§
1.0.0 · Sourcefn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the given formatter.
§Errors
This function should return Err
if, and only if, the provided Formatter
returns Err
.
String formatting is considered an infallible operation; this function only
returns a Result
because writing to the underlying stream might fail and it must
provide a way to propagate the fact that an error has occurred back up the stack.
§Examples
use std::fmt;
struct Position {
longitude: f32,
latitude: f32,
}
impl fmt::Display for Position {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "({}, {})", self.longitude, self.latitude)
}
}
assert_eq!(
"(1.987, 2.983)",
format!("{}", Position { longitude: 1.987, latitude: 2.983, }),
);
Implementors§
impl Display for rama::futures::io::ErrorKind
impl Display for HttpProxyError
impl Display for UserError
impl Display for Encoding
impl Display for ClientHint
impl Display for Extension
impl Display for PerMessageDeflateIdentifier
impl Display for GrpcFailureClass
impl Display for ServerErrorsFailureClass
impl Display for StatusInRangeFailureClass
impl Display for rama::http::matcher::uri::dep::regex::Error
impl Display for PseudoHeader
impl Display for SettingId
impl Display for DirectoryServeMode
impl Display for CsvRejection
impl Display for FormRejection
impl Display for JsonRejection
impl Display for TextRejection
impl Display for PathRejection
impl Display for ElementPatchMode
impl Display for EventType
impl Display for CrossOriginKind
impl Display for ReferrerPolicy
impl Display for HeaderValueErr
impl Display for rama::http::ws::Message
impl Display for rama::http::ws::ProtocolError
impl Display for rama::http::ws::handshake::client::HandshakeError
impl Display for ResponseValidateError
impl Display for RequestValidateError
impl Display for CloseCode
impl Display for rama::http::ws::protocol::frame::coding::OpCode
impl Display for OpCodeControl
impl Display for OpCodeData
impl Display for rama::net::address::Host
impl Display for Ja3ComputeError
impl Display for Ja4ComputeError
impl Display for Ja4HComputeError
impl Display for PeetComputeError
impl Display for Interface
impl Display for IpNet
impl Display for ApplicationProtocol
impl Display for CertificateCompressionAlgorithm
impl Display for CipherSuite
impl Display for CompressionAlgorithm
impl Display for ECPointFormat
impl Display for ExtensionId
impl Display for rama::net::tls::ProtocolVersion
impl Display for SignatureScheme
impl Display for SupportedGroup
impl Display for ProxyCredential
impl Display for Addresses
impl Display for BinaryParseError
impl Display for rama::proxy::haproxy::protocol::v1::ParseError
impl Display for rama::proxy::haproxy::protocol::v2::ParseError
impl Display for Socks5ProxyError
impl Display for AddressType
impl Display for Command
impl Display for rama::proxy::socks5::proto::ProtocolError
impl Display for rama::proxy::socks5::proto::ProtocolVersion
impl Display for ReplyKind
impl Display for SocksMethod
impl Display for UsernamePasswordSubnegotiationVersion
impl Display for Array
impl Display for rama::telemetry::opentelemetry::Value
impl Display for OTelSdkError
impl Display for rama::telemetry::opentelemetry::sdk::runtime::TrySendError
impl Display for TraceError
impl Display for ClientError
impl Display for Problem
impl Display for EarlyDataError
impl Display for VerifierBuilderError
impl Display for CertificateError
impl Display for rama::tls::rustls::dep::rustls::Error
impl Display for ExtendedKeyPurpose
impl Display for EncodeError
impl Display for EncryptError
impl Display for DeviceKind
impl Display for HttpAgent
impl Display for PlatformKind
impl Display for TlsAgent
impl Display for UserAgentKind
impl Display for RequestInitiator
impl Display for AnyDelimiterCodecError
impl Display for LinesCodecError
impl Display for BufReadDecoderError<'_>
impl Display for rama::utils::str::utf8::DecodeError<'_>
impl Display for rama::crypto::dep::pki_types::pem::Error
impl Display for rama::crypto::dep::rcgen::Error
impl Display for InvalidAsn1String
impl Display for rama::crypto::dep::x509_parser::error::PEMError
impl Display for rama::crypto::dep::x509_parser::error::X509Error
impl Display for rama::crypto::dep::x509_parser::extensions::GeneralName<'_>
impl Display for Class
impl Display for DerConstraint
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::Error
impl Display for OidParseError
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::SerializeError
impl Display for Infallible
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::slice::GetDisjointMutError
impl Display for AsciiChar
impl Display for FromBytesWithNulError
impl Display for IpAddr
impl Display for SocketAddr
impl Display for VarError
impl Display for std::fs::TryLockError
impl Display for std::sync::mpsc::RecvTimeoutError
impl Display for std::sync::mpsc::TryRecvError
impl Display for RoundingError
impl Display for chrono::weekday::Weekday
impl Display for FromHexError
impl Display for log::Level
impl Display for log::LevelFilter
impl Display for serde_json::value::Value
impl Display for url::parser::ParseError
impl Display for SyntaxViolation
impl Display for uuid::Variant
impl Display for BernoulliError
impl Display for rand::distr::uniform::Error
impl Display for rand::distr::weighted::Error
impl Display for bool
impl Display for char
impl Display for f16
impl Display for f32
impl Display for f64
impl Display for i8
impl Display for i16
impl Display for i32
impl Display for i64
impl Display for i128
impl Display for isize
impl Display for !
impl Display for str
impl Display for u8
impl Display for u16
impl Display for u32
impl Display for u64
impl Display for u128
impl Display for usize
impl Display for TryGetError
impl Display for NameServerConfig
impl Display for DnsDeniedError
impl Display for DomainNotMappedErr
impl Display for OpaqueError
impl Display for rama::futures::channel::mpsc::SendError
impl Display for rama::futures::channel::mpsc::TryRecvError
impl Display for Canceled
impl Display for EnterError
impl Display for rama::futures::io::Error
impl Display for Aborted
impl Display for SpawnError
impl Display for rama::http::core::h2::Error
impl Display for rama::http::core::h2::Reason
impl Display for rama::http::core::Error
impl Display for InvalidMethod
impl Display for InvalidStatusCode
impl Display for rama::http::dep::http::Error
impl Display for rama::http::dep::http::uri::Authority
impl Display for InvalidUri
impl Display for InvalidUriParts
impl Display for PathAndQuery
impl Display for LengthLimitError
impl Display for FromStrError
impl Display for InvalidHeaderName
impl Display for InvalidHeaderValue
impl Display for MaxSizeReached
impl Display for ToStrError
impl Display for ContentType
impl Display for rama::http::headers::Error
impl Display for rama::http::headers::Host
impl Display for LastEventId
impl Display for Mime
impl Display for Origin
impl Display for Referer
impl Display for Server
impl Display for rama::http::headers::UserAgent
impl Display for rama::http::headers::util::HttpDate
impl Display for Seconds
impl Display for DnsResolveMode
impl Display for Undefined
impl Display for RetryError
impl Display for TimeoutError
impl Display for UriParamsDeserializeError
impl Display for rama::http::matcher::uri::dep::regex::bytes::Regex
impl Display for rama::http::matcher::uri::dep::regex::Regex
impl Display for Http1HeaderName
impl Display for InvalidPseudoHeaderStr
impl Display for MissingAuthority
impl Display for BytesRejection
impl Display for FailedToDeserializeCsv
impl Display for FailedToDeserializeForm
impl Display for FailedToDeserializeJson
impl Display for InvalidCsvContentType
impl Display for InvalidFormContentType
impl Display for InvalidJsonContentType
impl Display for InvalidTextContentType
impl Display for InvalidUtf8Text
impl Display for MissingHost
impl Display for MissingPathParams
impl Display for FailedToDeserializeQueryString
impl Display for TypedHeaderRejection
impl Display for EventBuildError
impl Display for HeaderName
impl Display for Method
impl Display for Scheme
impl Display for StatusCode
Formats the status code, including the canonical reason.
§Example
assert_eq!(format!("{}", StatusCode::OK), "200 OK");
impl Display for Uri
impl Display for Frame
impl Display for CloseFrame
impl Display for Utf8Bytes
impl Display for LimitReached
impl Display for rama::layer::timeout::Elapsed
impl Display for rama::net::address::Authority
impl Display for Domain
impl Display for DomainAddress
impl Display for ProxyAddress
impl Display for SocketAddress
impl Display for Asn
impl Display for InvalidAsn
impl Display for Ja3
impl Display for Ja4
impl Display for Ja4H
impl Display for PeetPrint
impl Display for Forwarded
impl Display for ForwardedAuthority
impl Display for ForwardedElement
impl Display for ForwardedProtocol
impl Display for ForwardedVersion
impl Display for NodeId
impl Display for NoHttpRejectError
impl Display for DeviceName
impl Display for rama::net::stream::dep::ipnet::AddrParseError
impl Display for PrefixLenError
impl Display for Ipv4Net
impl Display for Ipv6Net
impl Display for rama::net::Protocol
impl Display for NoTlsRejectError
impl Display for Basic
impl Display for Bearer
impl Display for rama::proxy::haproxy::protocol::v1::Header<'_>
impl Display for rama::proxy::haproxy::protocol::v2::Header<'_>
impl Display for rama::proxy::socks5::server::Error
impl Display for NoSocks5RejectError
impl Display for MemoryProxyDBInsertError
impl Display for MemoryProxyDBQueryError
impl Display for ProxyCsvRowReaderError
impl Display for ProxyID
impl Display for StringFilter
impl Display for RejectError
impl Display for Baggage
impl Display for BaggageMetadata
impl Display for rama::telemetry::opentelemetry::Key
impl Display for SpanId
impl Display for StringValue
impl Display for TraceId
impl Display for SetGlobalDefaultError
impl Display for Field
impl Display for FieldSet
impl Display for ValueSet<'_>
impl Display for rama::telemetry::tracing::level_filters::LevelFilter
impl Display for ParseLevelFilterError
impl Display for rama::telemetry::tracing::metadata::ParseLevelError
impl Display for rama::telemetry::tracing::Level
impl Display for RawProblemResponse
impl Display for Asn1GeneralizedTimeRef
impl Display for Asn1ObjectRef
impl Display for Asn1TimeRef
impl Display for BigNum
impl Display for BigNumRef
impl Display for rama::tls::boring::core::error::Error
impl Display for ErrorStack
impl Display for rama::tls::boring::core::ssl::Error
impl Display for SslVersion
impl Display for OpensslString
impl Display for OpensslStringRef
impl Display for X509VerifyError
impl Display for rama::tls::rustls::dep::native_certs::Error
impl Display for UnsupportedOperationError
impl Display for OtherError
impl Display for rama::ua::UserAgent
impl Display for LengthDelimitedCodecError
impl Display for ComposeError
impl Display for EmptyStringErr
impl Display for NonEmptyString
impl Display for rama::crypto::dep::aws_lc_rs::error::KeyRejected
impl Display for rama::crypto::dep::aws_lc_rs::error::Unspecified
impl Display for rama::crypto::dep::pki_types::AddrParseError
impl Display for InvalidDnsNameError
impl Display for Ia5String
impl Display for PrintableString
impl Display for TeletexString
impl Display for SerialNumber
impl Display for rama::crypto::dep::x509_parser::extensions::KeyUsage
impl Display for rama::crypto::dep::x509_parser::extensions::NSCertType
impl Display for rama::crypto::dep::x509_parser::extensions::ReasonFlags
impl Display for BigInt
impl Display for BigUint
impl Display for ParseBigIntError
impl Display for rama::crypto::dep::x509_parser::prelude::ASN1Time
impl Display for rama::crypto::dep::x509_parser::prelude::ReasonCode
impl Display for rama::crypto::dep::x509_parser::prelude::X509Name<'_>
impl Display for rama::crypto::dep::x509_parser::prelude::X509Version
impl Display for ASN1DateTime
impl Display for GeneralizedTime
impl Display for Oid<'_>
impl Display for Tag
impl Display for UtcTime
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::alloc::AllocError
impl Display for LayoutError
impl Display for UnorderedKeyError
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::collections::TryReserveError
impl Display for ParseBoolError
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::str::Utf8Error
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::string::FromUtf8Error
impl Display for FromUtf16Error
impl Display for String
impl Display for ByteString
impl Display for FromVecWithNulError
impl Display for IntoStringError
impl Display for NulError
impl Display for core::array::TryFromSliceError
impl Display for core::ascii::EscapeDefault
impl Display for ByteStr
impl Display for BorrowError
impl Display for BorrowMutError
impl Display for CharTryFromError
impl Display for ParseCharError
impl Display for DecodeUtf16Error
impl Display for core::char::EscapeDebug
impl Display for core::char::EscapeDefault
impl Display for core::char::EscapeUnicode
impl Display for ToLowercase
impl Display for ToUppercase
impl Display for TryFromCharError
impl Display for FromBytesUntilNulError
impl Display for Ipv4Addr
impl Display for Ipv6Addr
Writes an Ipv6Addr, conforming to the canonical style described by RFC 5952.
impl Display for core::net::parser::AddrParseError
impl Display for SocketAddrV4
impl Display for SocketAddrV6
impl Display for core::num::dec2flt::ParseFloatError
impl Display for core::num::error::ParseIntError
impl Display for core::num::error::TryFromIntError
impl Display for Location<'_>
impl Display for PanicInfo<'_>
impl Display for PanicMessage<'_>
impl Display for TryFromFloatSecsError
impl Display for Backtrace
impl Display for JoinPathsError
impl Display for std::ffi::os_str::Display<'_>
impl Display for WriterPanicked
impl Display for PanicHookInfo<'_>
impl Display for std::path::Display<'_>
impl Display for NormalizeError
impl Display for StripPrefixError
impl Display for ExitStatus
impl Display for ExitStatusError
impl Display for std::sync::mpsc::RecvError
impl Display for AccessError
impl Display for SystemTimeError
impl Display for chrono::format::ParseError
impl Display for ParseMonthError
impl Display for NaiveDate
The Display
output of the naive date d
is the same as
d.format("%Y-%m-%d")
.
The string printed can be readily parsed via the parse
method on str
.
§Example
use chrono::NaiveDate;
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(2015, 9, 5).unwrap()), "2015-09-05");
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(0, 1, 1).unwrap()), "0000-01-01");
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(9999, 12, 31).unwrap()), "9999-12-31");
ISO 8601 requires an explicit sign for years before 1 BCE or after 9999 CE.
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(-1, 1, 1).unwrap()), "-0001-01-01");
assert_eq!(format!("{}", NaiveDate::from_ymd_opt(10000, 12, 31).unwrap()), "+10000-12-31");
impl Display for NaiveDateTime
The Display
output of the naive date and time dt
is the same as
dt.format("%Y-%m-%d %H:%M:%S%.f")
.
It should be noted that, for leap seconds not on the minute boundary, it may print a representation not distinguishable from non-leap seconds. This doesn’t matter in practice, since such leap seconds never happened. (By the time of the first leap second on 1972-06-30, every time zone offset around the world has standardized to the 5-minute alignment.)
§Example
use chrono::NaiveDate;
let dt = NaiveDate::from_ymd_opt(2016, 11, 15).unwrap().and_hms_opt(7, 39, 24).unwrap();
assert_eq!(format!("{}", dt), "2016-11-15 07:39:24");
Leap seconds may also be used.
let dt =
NaiveDate::from_ymd_opt(2015, 6, 30).unwrap().and_hms_milli_opt(23, 59, 59, 1_500).unwrap();
assert_eq!(format!("{}", dt), "2015-06-30 23:59:60.500");
impl Display for NaiveTime
The Display
output of the naive time t
is the same as
t.format("%H:%M:%S%.f")
.
The string printed can be readily parsed via the parse
method on str
.
It should be noted that, for leap seconds not on the minute boundary, it may print a representation not distinguishable from non-leap seconds. This doesn’t matter in practice, since such leap seconds never happened. (By the time of the first leap second on 1972-06-30, every time zone offset around the world has standardized to the 5-minute alignment.)
§Example
use chrono::NaiveTime;
assert_eq!(format!("{}", NaiveTime::from_hms_opt(23, 56, 4).unwrap()), "23:56:04");
assert_eq!(
format!("{}", NaiveTime::from_hms_milli_opt(23, 56, 4, 12).unwrap()),
"23:56:04.012"
);
assert_eq!(
format!("{}", NaiveTime::from_hms_micro_opt(23, 56, 4, 1234).unwrap()),
"23:56:04.001234"
);
assert_eq!(
format!("{}", NaiveTime::from_hms_nano_opt(23, 56, 4, 123456).unwrap()),
"23:56:04.000123456"
);
Leap seconds may also be used.
assert_eq!(
format!("{}", NaiveTime::from_hms_milli_opt(6, 59, 59, 1_500).unwrap()),
"06:59:60.500"
);
impl Display for FixedOffset
impl Display for Utc
impl Display for OutOfRange
impl Display for OutOfRangeError
impl Display for TimeDelta
impl Display for ParseWeekdayError
impl Display for WeekdaySet
Print the collection as a slice-like list of weekdays.
§Example
use chrono::Weekday::*;
assert_eq!("[]", WeekdaySet::EMPTY.to_string());
assert_eq!("[Mon]", WeekdaySet::single(Mon).to_string());
assert_eq!("[Mon, Fri, Sun]", WeekdaySet::from_array([Mon, Fri, Sun]).to_string());
impl Display for CompressError
impl Display for flate2::mem::DecompressError
impl Display for getrandom::error::Error
impl Display for log::ParseLevelError
impl Display for SetLoggerError
impl Display for num_traits::ParseFloatError
impl Display for serde::de::value::Error
impl Display for serde_json::error::Error
impl Display for Number
impl Display for Url
Display the serialization of this URL.
impl Display for uuid::error::Error
impl Display for Braced
impl Display for Hyphenated
impl Display for Simple
impl Display for Urn
impl Display for NonNilUuid
impl Display for Uuid
impl Display for Empty
impl Display for OsError
impl Display for Arguments<'_>
impl Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::fmt::Error
impl Display for A
impl Display for AAAA
impl Display for ANAME
impl Display for ASN1Error
impl Display for ASN1Time
impl Display for AcquireError
impl Display for AddrParseError
impl Display for Algorithm
impl Display for AllocError
impl Display for Alpn
impl Display for Ast
Print a display representation of this Ast.
This does not preserve any of the original whitespace formatting that may have originally been present in the concrete syntax from which this Ast was generated.
This implementation uses constant stack space and heap space proportional
to the size of the Ast
.
impl Display for Attribute
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Attributes
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for BigEndian
impl Display for BuildError
impl Display for BuildError
impl Display for BuildError
impl Display for BuildError
impl Display for BuildError
impl Display for CAA
impl Display for CERT
[2.2](https://datatracker.ietf.org/doc/html/rfc4398#section-2.2). Text Representation of CERT RRs
The RDATA portion of a CERT RR has the type field as an unsigned
decimal integer or as a mnemonic symbol as listed in [Section 2.1](https://datatracker.ietf.org/doc/html/rfc4398#section-2.1),
above.
The key tag field is represented as an unsigned decimal integer.
The algorithm field is represented as an unsigned decimal integer or
a mnemonic symbol as listed in [[12](https://datatracker.ietf.org/doc/html/rfc4398#ref-12)].
The certificate/CRL portion is represented in base 64 [[16](https://datatracker.ietf.org/doc/html/rfc4398#ref-16)] and may be
divided into any number of white-space-separated substrings, down to
single base-64 digits, which are concatenated to obtain the full
signature. These substrings can span lines using the standard
parenthesis.
Note that the certificate/CRL portion may have internal sub-fields,
but these do not appear in the master file representation. For
example, with type 254, there will be an OID size, an OID, and then
the certificate/CRL proper. However, only a single logical base-64
string will appear in the text representation.
impl Display for CNAME
impl Display for CSYNC
impl Display for CacheError
impl Display for CapacityOverflowError
impl Display for CaseFoldError
impl Display for CertType
impl Display for CollectionAllocErr
impl Display for ComponentRange
impl Display for Config
impl Display for ContentSizeError
impl Display for ConversionRange
impl Display for DNSClass
impl Display for DataError
impl Display for DataErrorKind
impl Display for DataIdentifierBorrowed<'_>
impl Display for DataLocale
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Date
impl Display for DecodeError
impl Display for DecodeError
impl Display for DecodeError
impl Display for DecodeKind
impl Display for DecodeSliceError
impl Display for DecompressError
impl Display for DeserializeError
impl Display for DeserializeError
impl Display for DeserializeErrorKind
impl Display for DifferentVariant
impl Display for Display<'_>
impl Display for Duration
The format returned by this implementation is not stable and must not be relied upon.
By default this produces an exact, full-precision printout of the duration.
For a concise, rounded printout instead, you can use the .N
format specifier:
let duration = Duration::new(123456, 789011223);
println!("{duration:.3}");
For the purposes of this implementation, a day is exactly 24 hours and a minute is exactly 60 seconds.
impl Display for EchConfigList
impl Display for Edns
impl Display for Elapsed
impl Display for Elapsed
impl Display for EncodeSliceError
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for Error
impl Display for ErrorKind
impl Display for ErrorKind
impl Display for ErrorKind
impl Display for Errors
impl Display for Fields
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Flags
We are following the dig
commands display format for the header flags
Example: “RD,AA,RA;” is Recursion-Desired, Authoritative-Answer, Recursion-Available.
impl Display for Format
impl Display for FromUtf8Error
impl Display for GeneralName<'_>
impl Display for GetDisjointMutError
impl Display for GetDisjointMutError
impl Display for GetTimezoneError
impl Display for GroupInfoError
impl Display for HINFO
RFC 1033, DOMAIN OPERATIONS GUIDE, November 1987
HINFO (Host Info)
<host> [<ttl>] [<class>] HINFO <hardware> <software>
The HINFO record gives information about a particular host. The data
is two strings separated by whitespace. The first string is a
hardware description and the second is software. The hardware is
usually a manufacturer name followed by a dash and model designation.
The software string is usually the name of the operating system.
Official HINFO types can be found in the latest Assigned Numbers RFC,
the latest of which is RFC-1010. The Hardware type is called the
Machine name and the Software type is called the System name.
Some sample HINFO records:
SRI-NIC.ARPA. HINFO DEC-2060 TOPS20
UCBARPA.Berkeley.EDU. HINFO VAX-11/780 UNIX
impl Display for HTTPS
impl Display for Header
impl Display for Hir
Print a display representation of this Hir.
The result of this is a valid regular expression pattern string.
This implementation uses constant stack space and heap space proportional
to the size of the Hir
.
impl Display for HttpDate
impl Display for Id
impl Display for InsertError
impl Display for InvalidBufferSize
impl Display for InvalidChunkSize
impl Display for InvalidFormatDescription
impl Display for InvalidLength
impl Display for InvalidOutputSize
impl Display for InvalidSetError
impl Display for InvalidStringList
impl Display for InvalidVariant
impl Display for JoinError
impl Display for Key
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Key
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for KeyRejected
impl Display for KeyUsage
impl Display for KeyValue
impl Display for Keywords
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Label
impl Display for Language
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for LanguageIdentifier
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for LittleEndian
impl Display for Locale
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for LowerName
impl Display for LowerQuery
impl Display for MX
RFC 1033, DOMAIN OPERATIONS GUIDE, November 1987
MX (Mail Exchanger) (See RFC-974 for more details.)
<name> [<ttl>] [<class>] MX <preference> <host>
MX records specify where mail for a domain name should be delivered.
There may be multiple MX records for a particular name. The
preference value specifies the order a mailer should try multiple MX
records when delivering mail. Zero is the highest preference.
Multiple records for the same name may have the same preference.
A host BAR.FOO.COM may want its mail to be delivered to the host
PO.FOO.COM and would then use the MX record:
BAR.FOO.COM. MX 10 PO.FOO.COM.
A host BAZ.FOO.COM may want its mail to be delivered to one of three
different machines, in the following order:
BAZ.FOO.COM. MX 10 PO1.FOO.COM.
MX 20 PO2.FOO.COM.
MX 30 PO3.FOO.COM.
An entire domain of hosts not connected to the Internet may want
their mail to go through a mail gateway that knows how to deliver
mail to them. If they would like mail addressed to any host in the
domain FOO.COM to go through the mail gateway they might use:
FOO.COM. MX 10 RELAY.CS.NET.
*.FOO.COM. MX 20 RELAY.CS.NET.
Note that you can specify a wildcard in the MX record to match on
anything in FOO.COM, but that it won't match a plain FOO.COM.
impl Display for Mandatory
impl Display for MatchError
impl Display for MatchError
impl Display for MatchError
impl Display for MergeError
impl Display for Message
impl Display for MessageType
impl Display for Month
impl Display for NAPTR
RFC 2915, NAPTR DNS RR, September 2000
Master File Format
The master file format follows the standard rules in RFC-1035 [1].
Order and preference, being 16-bit unsigned integers, shall be an
integer between 0 and 65535. The Flags and Services and Regexp
fields are all quoted <character-string>s. Since the Regexp field
can contain numerous backslashes and thus should be treated with
care. See Section 10 for how to correctly enter and escape the
regular expression.
;; order pflags service regexp replacement
IN NAPTR 100 50 "a" "z3950+N2L+N2C" "" cidserver.example.com.
IN NAPTR 100 50 "a" "rcds+N2C" "" cidserver.example.com.
IN NAPTR 100 50 "s" "http+N2L+N2C+N2R" "" www.example.com.
impl Display for NS
impl Display for NSCertType
impl Display for NULL
impl Display for Name
impl Display for Network
impl Display for OPENPGPKEY
Parse the RData from a set of tokens.
2.3. The OPENPGPKEY RDATA Presentation Format
The RDATA Presentation Format, as visible in Zone Files [RFC1035],
consists of a single OpenPGP Transferable Public Key as defined in
Section 11.1 of [RFC4880] encoded in base64 as defined in Section 4
of [RFC4648].
impl Display for OPT
impl Display for ObjectIdentifier
impl Display for OffsetDateTime
impl Display for OpCode
impl Display for Other
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for PEMError
impl Display for PTR
impl Display for Parse
impl Display for ParseAlphabetError
impl Display for ParseError
impl Display for ParseError
impl Display for ParseError
impl Display for ParseError
impl Display for ParseError
impl Display for ParseFromDescription
impl Display for ParseIntError
impl Display for ParseOidError
impl Display for PatternIDError
impl Display for PatternIDError
impl Display for PatternSetInsertError
impl Display for Pcg64
impl Display for Pem
impl Display for PemError
impl Display for PercentEncode<'_>
impl Display for PredicateError
impl Display for PreferencesParseError
impl Display for PrimitiveDateTime
impl Display for Private
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Property
impl Display for ProtoError
impl Display for ProtoErrorKind
impl Display for Protocol
impl Display for Query
impl Display for RData
impl Display for RangeError
impl Display for RangeUnsatisfiableError
impl Display for Reason
impl Display for ReasonCode
impl Display for ReasonFlags
impl Display for RecordType
impl Display for RecvError
impl Display for RecvError
impl Display for RecvError
impl Display for RecvError
impl Display for RecvError
impl Display for RecvTimeoutError
impl Display for RecvTimeoutError
impl Display for Region
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for ResolveError
impl Display for ResolveErrorKind
impl Display for ResponseCode
impl Display for ReuniteError
impl Display for ReuniteError
impl Display for SOA
RFC 1033, DOMAIN OPERATIONS GUIDE, November 1987
SOA (Start Of Authority)
<name> [<ttl>] [<class>] SOA <origin> <person> (
<serial>
<refresh>
<retry>
<expire>
<minimum> )
The Start Of Authority record designates the start of a zone. The
zone ends at the next SOA record.
<name> is the name of the zone.
<origin> is the name of the host on which the master zone file
resides.
<person> is a mailbox for the person responsible for the zone. It is
formatted like a mailing address but the at-sign that normally
separates the user from the host name is replaced with a dot.
<serial> is the version number of the zone file. It should be
incremented anytime a change is made to data in the zone.
<refresh> is how long, in seconds, a secondary name server is to
check with the primary name server to see if an update is needed. A
good value here would be one hour (3600).
<retry> is how long, in seconds, a secondary name server is to retry
after a failure to check for a refresh. A good value here would be
10 minutes (600).
<expire> is the upper limit, in seconds, that a secondary name server
is to use the data before it expires for lack of getting a refresh.
You want this to be rather large, and a nice value is 3600000, about
42 days.
<minimum> is the minimum number of seconds to be used for TTL values
in RRs. A minimum of at least a day is a good value here (86400).
There should only be one SOA record per zone. A sample SOA record
would look something like:
@ IN SOA SRI-NIC.ARPA. HOSTMASTER.SRI-NIC.ARPA. (
45 ;serial
3600 ;refresh
600 ;retry
3600000 ;expire
86400 ) ;minimum
impl Display for SRV
The format of the SRV RR
Here is the format of the SRV RR, whose DNS type code is 33:
_Service._Proto.Name TTL Class SRV Priority Weight Port Target
(There is an example near the end of this document.)
impl Display for SSHFP
3.2. Presentation Format of the SSHFP RR
The RDATA of the presentation format of the SSHFP resource record
consists of two numbers (algorithm and fingerprint type) followed by
the fingerprint itself, presented in hex, e.g.:
host.example. SSHFP 2 1 123456789abcdef67890123456789abcdef67890
The use of mnemonics instead of numbers is not allowed.
impl Display for SVCB
simple.example. 7200 IN HTTPS 1 . alpn=h3
pool 7200 IN HTTPS 1 h3pool alpn=h2,h3 ech="123..."
HTTPS 2 . alpn=h2 ech="abc..."
@ 7200 IN HTTPS 0 www
_8765._baz.api.example.com. 7200 IN SVCB 0 svc4-baz.example.net.
impl Display for ScopedIp
impl Display for Script
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for SelectError
impl Display for SelectTimeoutError
impl Display for SerializeError
impl Display for SmallIndexError
impl Display for SmolStr
impl Display for SpecificationError
impl Display for StartError
impl Display for StateIDError
impl Display for StateIDError
impl Display for SubdivisionId
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for SubdivisionSuffix
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Subtag
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Subtag
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for SvcParamKey
impl Display for SvcParamValue
impl Display for TLSA
2.2. TLSA RR Presentation Format
The presentation format of the RDATA portion (as defined in
[RFC1035]) is as follows:
o The certificate usage field MUST be represented as an 8-bit
unsigned integer.
o The selector field MUST be represented as an 8-bit unsigned
integer.
o The matching type field MUST be represented as an 8-bit unsigned
integer.
o The certificate association data field MUST be represented as a
string of hexadecimal characters. Whitespace is allowed within
the string of hexadecimal characters, as described in [RFC1035].
2.3. TLSA RR Examples
In the following examples, the domain name is formed using the rules
in Section 3.
An example of a hashed (SHA-256) association of a PKIX CA
certificate:
_443._tcp.www.example.com. IN TLSA (
0 0 1 d2abde240d7cd3ee6b4b28c54df034b9
7983a1d16e8a410e4561cb106618e971 )
An example of a hashed (SHA-512) subject public key association of a
PKIX end entity certificate:
_443._tcp.www.example.com. IN TLSA (
1 1 2 92003ba34942dc74152e2f2c408d29ec
a5a520e7f2e06bb944f4dca346baf63c
1b177615d466f6c4b71c216a50292bd5
8c9ebdd2f74e38fe51ffd48c43326cbc )
An example of a full certificate association of a PKIX end entity
certificate:
_443._tcp.www.example.com. IN TLSA (
3 0 0 30820307308201efa003020102020... )
impl Display for TXT
impl Display for Targets
impl Display for Time
impl Display for Transform
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for TryAcquireError
impl Display for TryCurrentError
impl Display for TryFromIntError
impl Display for TryFromParsed
impl Display for TryFromSliceError
impl Display for TryInitError
impl Display for TryLockError
impl Display for TryRecvError
impl Display for TryRecvError
impl Display for TryRecvError
impl Display for TryRecvError
impl Display for TryRecvError
impl Display for TryReserveError
impl Display for TryReserveError
impl Display for TrySelectError
impl Display for UleError
impl Display for Unicode
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for UnicodeWordBoundaryError
impl Display for UnicodeWordError
impl Display for Unknown
impl Display for Unspecified
impl Display for UriTemplateStr
impl Display for UriTemplateString
impl Display for UtcDateTime
impl Display for UtcOffset
impl Display for Utf8CharsError
impl Display for Utf8Error
impl Display for Value
impl Display for Value
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Value
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Variant
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Variants
This trait is implemented for compatibility with fmt!
.
To create a string, [Writeable::write_to_string
] is usually more efficient.
impl Display for Weekday
impl Display for WyRand
impl Display for X509Error
impl Display for X509Name<'_>
impl Display for X509Version
impl Display for ZeroTrieBuildError
impl Display for ZipDateTimeKind
impl Display for dyn Value
impl Display for dyn Expected + '_
impl<'a> Display for Unexpected<'a>
impl<'a> Display for rama::http::dep::mime::Name<'a>
impl<'a> Display for EscapeAscii<'a>
impl<'a> Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::str::EscapeDebug<'a>
impl<'a> Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::str::EscapeDefault<'a>
impl<'a> Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::str::EscapeUnicode<'a>
impl<'a, 'e, E> Display for Base64Display<'a, 'e, E>where
E: Engine,
impl<'a, I> Display for Format<'a, I>
impl<'a, I, B> Display for DelayedFormat<I>
impl<'a, K, V> Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::collections::hash_map::OccupiedError<'a, K, V>
impl<'a, K, V, A> Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::lib::std::collections::btree_map::OccupiedError<'a, K, V, A>
impl<'a, R, G, T> Display for MappedReentrantMutexGuard<'a, R, G, T>
impl<'a, R, G, T> Display for ReentrantMutexGuard<'a, R, G, T>
impl<'a, R, T> Display for MappedMutexGuard<'a, R, T>
impl<'a, R, T> Display for MappedRwLockReadGuard<'a, R, T>
impl<'a, R, T> Display for MappedRwLockWriteGuard<'a, R, T>
impl<'a, R, T> Display for MutexGuard<'a, R, T>
impl<'a, R, T> Display for RwLockReadGuard<'a, R, T>
impl<'a, R, T> Display for RwLockUpgradableReadGuard<'a, R, T>
impl<'a, R, T> Display for RwLockWriteGuard<'a, R, T>
impl<'a, T> Display for MappedMutexGuard<'a, T>
impl<'a, T> Display for MutexGuard<'a, T>
impl<'a, T> Display for RwLockMappedWriteGuard<'a, T>
impl<'a, T> Display for RwLockReadGuard<'a, T>
impl<'a, T> Display for RwLockWriteGuard<'a, T>
impl<'a, T> Display for SpinMutexGuard<'a, T>
impl<'rwlock, T> Display for RwLockReadGuard<'rwlock, T>
impl<'rwlock, T, R> Display for RwLockUpgradableGuard<'rwlock, T, R>
impl<'rwlock, T, R> Display for RwLockWriteGuard<'rwlock, T, R>
impl<'s, T> Display for SliceVec<'s, T>where
T: Display,
impl<A> Display for ArrayVec<A>where
A: Array,
<A as Array>::Item: Display,
impl<A> Display for TinyVec<A>where
A: Array,
<A as Array>::Item: Display,
impl<A, B> Display for rama::combinators::Either<A, B>
impl<A, B> Display for EitherConn<A, B>
impl<A, B> Display for EitherConnConnected<A, B>
impl<A, B, C> Display for Either3<A, B, C>
impl<A, B, C> Display for EitherConn3<A, B, C>
impl<A, B, C> Display for EitherConn3Connected<A, B, C>
impl<A, B, C, D> Display for Either4<A, B, C, D>
impl<A, B, C, D> Display for EitherConn4<A, B, C, D>
impl<A, B, C, D> Display for EitherConn4Connected<A, B, C, D>
impl<A, B, C, D, E> Display for Either5<A, B, C, D, E>
impl<A, B, C, D, E> Display for EitherConn5<A, B, C, D, E>
impl<A, B, C, D, E> Display for EitherConn5Connected<A, B, C, D, E>
impl<A, B, C, D, E, F> Display for Either6<A, B, C, D, E, F>
impl<A, B, C, D, E, F> Display for EitherConn6<A, B, C, D, E, F>
impl<A, B, C, D, E, F> Display for EitherConn6Connected<A, B, C, D, E, F>
impl<A, B, C, D, E, F, G> Display for Either7<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> Display for EitherConn7<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G> Display for EitherConn7Connected<A, B, C, D, E, F, G>
impl<A, B, C, D, E, F, G, H> Display for Either8<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H> Display for EitherConn8<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H> Display for EitherConn8Connected<A, B, C, D, E, F, G, H>
impl<A, B, C, D, E, F, G, H, I> Display for Either9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> Display for EitherConn9<A, B, C, D, E, F, G, H, I>
impl<A, B, C, D, E, F, G, H, I> Display for EitherConn9Connected<A, B, C, D, E, F, G, H, I>
impl<A, S, V> Display for ConvertError<A, S, V>
Produces a human-readable error message.
The message differs between debug and release builds. When
debug_assertions
are enabled, this message is verbose and includes
potentially sensitive information.
impl<B> Display for Cow<'_, B>
impl<E> Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::Err<E>where
E: Debug,
impl<E> Display for Report<E>where
E: Error,
impl<E> Display for Err<E>where
E: Debug,
impl<F> Display for FromFn<F>
impl<I> Display for rama::crypto::dep::x509_parser::prelude::asn1_rs::nom::error::Error<I>where
I: Display,
The Display implementation allows the std::error::Error implementation
impl<I> Display for VerboseError<I>where
I: Display,
impl<I> Display for Decompositions<I>
impl<I> Display for Error<I>where
I: Display,
The Display implementation allows the std::error::Error implementation
impl<I> Display for ExactlyOneError<I>where
I: Iterator,
impl<I> Display for Recompositions<I>
impl<I> Display for Replacements<I>
impl<I, F> Display for FormatWith<'_, I, F>
impl<K, V> Display for TryIntoHeaderError<K, V>
impl<K, V, S, A> Display for OccupiedError<'_, K, V, S, A>
impl<L, R> Display for either::Either<L, R>
impl<O> Display for F32<O>where
O: ByteOrder,
impl<O> Display for F64<O>where
O: ByteOrder,
impl<O> Display for I16<O>where
O: ByteOrder,
impl<O> Display for I32<O>where
O: ByteOrder,
impl<O> Display for I64<O>where
O: ByteOrder,
impl<O> Display for I128<O>where
O: ByteOrder,
impl<O> Display for Isize<O>where
O: ByteOrder,
impl<O> Display for U16<O>where
O: ByteOrder,
impl<O> Display for U32<O>where
O: ByteOrder,
impl<O> Display for U64<O>where
O: ByteOrder,
impl<O> Display for U128<O>where
O: ByteOrder,
impl<O> Display for Usize<O>where
O: ByteOrder,
impl<P> Display for UdpClientStream<P>
impl<Ptr> Display for Pin<Ptr>where
Ptr: Display,
impl<R> Display for Record<R>where
R: RecordData,
RFC 1033, DOMAIN OPERATIONS GUIDE, November 1987
RESOURCE RECORDS
Records in the zone data files are called resource records (RRs).
They are specified in RFC-883 and RFC-973. An RR has a standard
format as shown:
<name> [<ttl>] [<class>] <type> <data>
The record is divided into fields which are separated by white space.
<name>
The name field defines what domain name applies to the given
RR. In some cases the name field can be left blank and it will
default to the name field of the previous RR.
<ttl>
TTL stands for Time To Live. It specifies how long a domain
resolver should cache the RR before it throws it out and asks a
domain server again. See the section on TTL's. If you leave
the TTL field blank it will default to the minimum time
specified in the SOA record (described later).
<class>
The class field specifies the protocol group. If left blank it
will default to the last class specified.
<type>
The type field specifies what type of data is in the RR. See
the section on types.
<data>
The data field is defined differently for each type and class
of data. Popular RR data formats are described later.
impl<S> Display for rama::tls::boring::core::ssl::HandshakeError<S>
impl<S> Display for url::host::Host<S>
impl<S> Display for BindError<S>
impl<S> Display for rama::tls::boring::core::tokio::HandshakeError<S>
impl<S> Display for Ascii<S>where
S: Display,
impl<S> Display for Built<'_, RiAbsoluteStr<S>>where
S: Spec,
impl<S> Display for Built<'_, RiReferenceStr<S>>where
S: Spec,
impl<S> Display for Built<'_, RiRelativeStr<S>>where
S: Spec,
impl<S> Display for Built<'_, RiStr<S>>where
S: Spec,
impl<S> Display for DnsMultiplexer<S>where
S: DnsClientStream + 'static,
impl<S> Display for MappedToUri<'_, RiAbsoluteStr<S>>where
S: Spec,
impl<S> Display for MappedToUri<'_, RiFragmentStr<S>>where
S: Spec,
impl<S> Display for MappedToUri<'_, RiQueryStr<S>>where
S: Spec,
impl<S> Display for MappedToUri<'_, RiReferenceStr<S>>where
S: Spec,
impl<S> Display for MappedToUri<'_, RiRelativeStr<S>>where
S: Spec,
impl<S> Display for MappedToUri<'_, RiStr<S>>where
S: Spec,
impl<S> Display for Normalized<'_, RiAbsoluteStr<S>>where
S: Spec,
impl<S> Display for Normalized<'_, RiStr<S>>where
S: Spec,
impl<S> Display for PasswordMasked<'_, RiAbsoluteStr<S>>where
S: Spec,
impl<S> Display for PasswordMasked<'_, RiReferenceStr<S>>where
S: Spec,
impl<S> Display for PasswordMasked<'_, RiRelativeStr<S>>where
S: Spec,
impl<S> Display for PasswordMasked<'_, RiStr<S>>where
S: Spec,
impl<S> Display for RiAbsoluteStr<S>where
S: Spec,
impl<S> Display for RiAbsoluteString<S>where
S: Spec,
impl<S> Display for RiFragmentStr<S>where
S: Spec,
impl<S> Display for RiFragmentString<S>where
S: Spec,
impl<S> Display for RiQueryStr<S>where
S: Spec,
impl<S> Display for RiQueryString<S>where
S: Spec,
impl<S> Display for RiReferenceStr<S>where
S: Spec,
impl<S> Display for RiReferenceString<S>where
S: Spec,
impl<S> Display for RiRelativeStr<S>where
S: Spec,
impl<S> Display for RiRelativeString<S>where
S: Spec,
impl<S> Display for RiStr<S>where
S: Spec,
impl<S> Display for RiString<S>where
S: Spec,
impl<S> Display for TcpClientStream<S>where
S: DnsTcpStream,
impl<S> Display for UniCase<S>where
S: Display,
impl<S, C> Display for Expanded<'_, S, C>where
S: Spec,
C: Context,
impl<S, D> Display for PasswordReplaced<'_, RiAbsoluteStr<S>, D>where
S: Spec,
D: Display,
impl<S, D> Display for PasswordReplaced<'_, RiReferenceStr<S>, D>where
S: Spec,
D: Display,
impl<S, D> Display for PasswordReplaced<'_, RiRelativeStr<S>, D>where
S: Spec,
D: Display,
impl<S, D> Display for PasswordReplaced<'_, RiStr<S>, D>where
S: Spec,
D: Display,
impl<Src, Dst> Display for AlignmentError<Src, Dst>
Produces a human-readable error message.
The message differs between debug and release builds. When
debug_assertions
are enabled, this message is verbose and includes
potentially sensitive information.
impl<Src, Dst> Display for SizeError<Src, Dst>
Produces a human-readable error message.
The message differs between debug and release builds. When
debug_assertions
are enabled, this message is verbose and includes
potentially sensitive information.
impl<Src, Dst> Display for ValidityError<Src, Dst>where
Dst: KnownLayout + TryFromBytes + ?Sized,
Produces a human-readable error message.
The message differs between debug and release builds. When
debug_assertions
are enabled, this message is verbose and includes
potentially sensitive information.