Trait bones_framework::asset::prelude::bones_utils::prelude::alloc::fmt::Display
1.0.0 · source · 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.
§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 GgrsError
impl Display for GamepadAxis
impl Display for GamepadButton
impl Display for LogFileError
impl Display for EcsRefBorrowError
impl Display for CompileErrorKind
impl Display for ParseErrorKind
impl Display for LexError
impl Display for ClosureError
impl Display for InvalidTableKey
impl Display for PrototypeError
impl Display for StaticError
impl Display for VMError
impl Display for BinaryOperatorError
impl Display for HexColorError
impl Display for CollectionAllocErr
impl Display for LabeledIdCreateError
impl Display for LabledIdParseError
impl Display for bones_framework::asset::prelude::bones_utils::prelude::futures::io::ErrorKind
impl Display for AsciiChar
impl Display for Infallible
impl Display for IpAddr
impl Display for core::net::socket_addr::SocketAddr
impl Display for VarError
impl Display for std::sync::mpsc::RecvTimeoutError
impl Display for std::sync::mpsc::TryRecvError
impl Display for bincode::error::ErrorKind
impl Display for FromHexError
impl Display for IpNet
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 BernoulliError
impl Display for WeightedError
impl Display for bool
impl Display for char
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 bones_framework::glam::Affine2
impl Display for bones_framework::glam::Affine3A
impl Display for bones_framework::glam::BVec2
impl Display for bones_framework::glam::BVec3
impl Display for bones_framework::glam::BVec3A
impl Display for bones_framework::glam::BVec4
impl Display for bones_framework::glam::BVec4A
impl Display for bones_framework::glam::DAffine2
impl Display for bones_framework::glam::DAffine3
impl Display for bones_framework::glam::DMat2
impl Display for bones_framework::glam::DMat3
impl Display for bones_framework::glam::DMat4
impl Display for bones_framework::glam::DQuat
impl Display for bones_framework::glam::DVec2
impl Display for bones_framework::glam::DVec3
impl Display for bones_framework::glam::DVec4
impl Display for bones_framework::glam::I64Vec2
impl Display for bones_framework::glam::I64Vec3
impl Display for bones_framework::glam::I64Vec4
impl Display for bones_framework::glam::IVec2
impl Display for bones_framework::glam::IVec3
impl Display for bones_framework::glam::IVec4
impl Display for bones_framework::glam::Mat2
impl Display for bones_framework::glam::Mat3
impl Display for bones_framework::glam::Mat3A
impl Display for bones_framework::glam::Mat4
impl Display for bones_framework::glam::Quat
impl Display for bones_framework::glam::U64Vec2
impl Display for bones_framework::glam::U64Vec3
impl Display for bones_framework::glam::U64Vec4
impl Display for bones_framework::glam::UVec2
impl Display for bones_framework::glam::UVec3
impl Display for bones_framework::glam::UVec4
impl Display for bones_framework::glam::Vec2
impl Display for bones_framework::glam::Vec3
impl Display for bones_framework::glam::Vec3A
impl Display for bones_framework::glam::Vec4
impl Display for CellAlreadyPresentError
impl Display for TypeDataAlreadyInserted
impl Display for CompileError
impl Display for LineNumber
impl Display for bones_framework::prelude::piccolo::compiler::ParseError
impl Display for StaticLuaError
impl Display for BadConcatType
impl Display for BadExecutorMode
impl Display for BadThreadMode
impl Display for BadUserDataType
impl Display for RuntimeError
impl Display for TypeError
impl Display for AssetPackSpec
impl Display for Cid
impl Display for IncompatibleGameVersionError
impl Display for SchemaBox
impl Display for SchemaMismatchError
impl Display for SchemaRef<'_>
impl Display for Ulid
impl Display for Version
impl Display for bones_framework::asset::prelude::anyhow::Error
impl Display for LabeledId
impl Display for Ustr
impl Display for bones_framework::asset::prelude::bones_utils::prelude::futures::io::Error
impl Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::alloc::AllocError
impl Display for LayoutError
impl Display for UnorderedKeyError
impl Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::collections::TryReserveError
impl Display for FromVecWithNulError
impl Display for IntoStringError
impl Display for NulError
impl Display for ParseBoolError
impl Display for Utf8Error
impl Display for FromUtf8Error
impl Display for FromUtf16Error
impl Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::string::String
impl Display for core::array::TryFromSliceError
impl Display for core::ascii::EscapeDefault
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 FromBytesWithNulError
impl Display for Ipv4Addr
impl Display for Ipv6Addr
Write 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 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 erased_serde::error::Error
impl Display for CompressError
impl Display for flate2::mem::DecompressError
impl Display for getrandom::error::Error
impl Display for glam::bool::bvec2::BVec2
impl Display for glam::bool::bvec3::BVec3
impl Display for glam::bool::bvec4::BVec4
impl Display for glam::bool::sse2::bvec3a::BVec3A
impl Display for glam::bool::sse2::bvec4a::BVec4A
impl Display for glam::f32::affine2::Affine2
impl Display for glam::f32::affine3a::Affine3A
impl Display for glam::f32::mat3::Mat3
impl Display for glam::f32::sse2::mat2::Mat2
impl Display for glam::f32::sse2::mat3a::Mat3A
impl Display for glam::f32::sse2::mat4::Mat4
impl Display for glam::f32::sse2::quat::Quat
impl Display for glam::f32::sse2::vec3a::Vec3A
impl Display for glam::f32::sse2::vec4::Vec4
impl Display for glam::f32::vec2::Vec2
impl Display for glam::f32::vec3::Vec3
impl Display for glam::f64::daffine2::DAffine2
impl Display for glam::f64::daffine3::DAffine3
impl Display for glam::f64::dmat2::DMat2
impl Display for glam::f64::dmat3::DMat3
impl Display for glam::f64::dmat4::DMat4
impl Display for glam::f64::dquat::DQuat
impl Display for glam::f64::dvec2::DVec2
impl Display for glam::f64::dvec3::DVec3
impl Display for glam::f64::dvec4::DVec4
impl Display for I16Vec2
impl Display for I16Vec3
impl Display for I16Vec4
impl Display for glam::i32::ivec2::IVec2
impl Display for glam::i32::ivec3::IVec3
impl Display for glam::i32::ivec4::IVec4
impl Display for glam::i64::i64vec2::I64Vec2
impl Display for glam::i64::i64vec3::I64Vec3
impl Display for glam::i64::i64vec4::I64Vec4
impl Display for U16Vec2
impl Display for U16Vec3
impl Display for U16Vec4
impl Display for glam::u32::uvec2::UVec2
impl Display for glam::u32::uvec3::UVec3
impl Display for glam::u32::uvec4::UVec4
impl Display for glam::u64::u64vec2::U64Vec2
impl Display for glam::u64::u64vec3::U64Vec3
impl Display for glam::u64::u64vec4::U64Vec4
impl Display for http_body::limited::LengthLimitError
impl Display for http::error::Error
impl Display for http::header::map::MaxSizeReached
impl Display for http::header::name::HeaderName
impl Display for http::header::name::InvalidHeaderName
impl Display for http::header::value::InvalidHeaderValue
impl Display for http::header::value::ToStrError
impl Display for http::method::InvalidMethod
impl Display for http::method::Method
impl Display for http::status::InvalidStatusCode
impl Display for http::status::StatusCode
Formats the status code, including the canonical reason.
§Example
assert_eq!(format!("{}", StatusCode::OK), "200 OK");
impl Display for http::uri::authority::Authority
impl Display for http::uri::path::PathAndQuery
impl Display for http::uri::scheme::Scheme
impl Display for http::uri::InvalidUri
impl Display for http::uri::InvalidUriParts
impl Display for http::uri::Uri
impl Display for IntoArrayError
impl Display for NotEqualError
impl Display for OutIsTooSmallError
impl Display for ipnet::ipnet::Ipv4Net
impl Display for ipnet::ipnet::Ipv6Net
impl Display for PrefixLenError
impl Display for ipnet::parser::AddrParseError
impl Display for log::ParseLevelError
impl Display for SetLoggerError
impl Display for BigInt
impl Display for BigUint
impl Display for ParseBigIntError
impl Display for num_traits::ParseFloatError
impl Display for semver::parse::Error
impl Display for BuildMetadata
impl Display for Comparator
impl Display for Prerelease
impl Display for VersionReq
impl Display for serde::de::value::Error
impl Display for serde_json::error::Error
impl Display for serde_json::number::Number
impl Display for serde_yaml::error::Error
impl Display for serde_yaml::number::Number
impl Display for serde_yaml::value::tagged::Tag
impl Display for Url
Display the serialization of this URL.
impl Display for rand::rngs::adapter::read::ReadError
impl Display for rand_core::error::Error
impl Display for Arguments<'_>
impl Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::fmt::Error
impl Display for A
impl Display for AAAA
impl Display for ANAME
impl Display for ASN1DateTime
impl Display for ASN1Error
impl Display for ASN1Time
impl Display for Aborted
impl Display for AcquireError
impl Display for AddAnyPortError
impl Display for AddPortError
impl Display for AddrInfoOptions
impl Display for AddrParseError
impl Display for AddrParseError
impl Display for AddrParseError
impl Display for Algorithm
impl Display for AlgorithmId
impl Display for AllocError
impl Display for Alpn
impl Display for AnyDelimiterCodecError
impl Display for ApplicationClose
impl Display for Associativity
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 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 AttributeType
impl Display for Authority
impl Display for BackendSpecificError
impl Display for BadName
impl Display for BlendOp
impl Display for BlobFormat
impl Display for BlobTicket
impl Display for BmpString
impl Display for BuildError
impl Display for BuildError
impl Display for BuildError
impl Display for BuildError
impl Display for BuildError
impl Display for BuildStreamError
impl Display for CAA
impl Display for CNAME
impl Display for CSYNC
impl Display for CacheError
impl Display for CacheInfo
impl Display for CacheType
impl Display for Canceled
impl Display for CapacityError
impl Display for CaseFoldError
impl Display for CaseFoldError
impl Display for Channels
impl Display for CheckedCastError
impl Display for Chmap
impl Display for ChmapPosition
impl Display for Cipher
impl Display for Class
impl Display for Class
impl Display for ClientError
impl Display for CloseCode
impl Display for CloseCode
impl Display for Code
impl Display for CodecType
impl Display for CodepointInfo
impl Display for Codepoints
impl Display for Color
impl Display for ComponentRange
impl Display for Config
impl Display for ConfigError
impl Display for ConfigOpts
impl Display for ConnectError
impl Display for ConnectionClose
impl Display for ConnectionError
impl Display for ConnectionId
impl Display for ConnectionType
impl Display for Control
impl Display for ControlMsg
impl Display for ConversionRange
impl Display for DNSClass
impl Display for DatType
impl Display for Data
impl Display for Date
impl Display for DateTime
impl Display for DecodeError
impl Display for DecodeError
impl Display for DecodeError
impl Display for DecodeError
impl Display for DecodeError
impl Display for DecodeError
impl Display for DecodeKind
impl Display for DecodeSliceError
impl Display for DecodeSliceError
impl Display for DecodingError
impl Display for DecodingError
impl Display for DecompressError
impl Display for DefaultStreamConfigError
impl Display for DerConstraint
impl Display for DerivedPropertyValue
impl Display for DeserializeError
impl Display for DeviceNameError
impl Display for DevicesError
impl Display for DifferentVariant
impl Display for Dir
impl Display for DirectAddrType
impl Display for Directive
impl Display for Disconnected
impl Display for DisposeOp
impl Display for DnsSecError
impl Display for DnsSecErrorKind
impl Display for Duration
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 EarlyDataError
impl Display for EcdsaCurve
impl Display for EcdsaPublicKey
impl Display for EchConfig
impl Display for Ed25519PublicKey
impl Display for Edns
impl Display for Elapsed
impl Display for EmitterError
impl Display for EncodeError
impl Display for EncodeError
impl Display for EncodeError
impl Display for EncodeSliceError
impl Display for EncodeSliceError
impl Display for Encoding
impl Display for EncodingError
impl Display for EncodingError
impl Display for EncryptError
impl Display for EnterError
impl Display for EnvFilter
impl Display for Errno
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 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 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 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 ErrorKind
impl Display for ErrorKind
impl Display for ErrorKind
impl Display for ErrorKind
impl Display for ErrorMessage
impl Display for Errors
impl Display for Errors
impl Display for EtherType
impl Display for ExtendedRegisterStateLocation
impl Display for ExtendedRegisterType
impl Display for FaceParsingError
impl Display for Field
impl Display for Field
impl Display for FieldSet
impl Display for FileTime
impl Display for Fingerprint
impl Display for FinishError
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 FluentError
impl Display for FontFamily
impl Display for Format
impl Display for Format
impl Display for FormattedDuration
impl Display for Frame
impl Display for FromEnvError
impl Display for FromFileError
impl Display for FromStrError
impl Display for Gateway
impl Display for GenError
impl Display for GeneralizedTime
impl Display for GetExternalIpError
impl Display for GetGenericPortMappingEntryError
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 Hash
impl Display for Hash
impl Display for HashAlg
impl Display for HashAndFormat
impl Display for Header
impl Display for HeaderName
impl Display for HexDisplay<'_>
impl Display for HexError
impl Display for HexOrBase32ParseError
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 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 Ia5String
impl Display for ImageError
impl Display for ImageFormatHint
impl Display for Infix
impl Display for InitError
impl Display for InsufficientCapacity
impl Display for InvalidBufferSize
impl Display for InvalidChunkSize
impl Display for InvalidDnsNameError
impl Display for InvalidDnsNameError
impl Display for InvalidDnsNameError
impl Display for InvalidEncodingError
impl Display for InvalidFont
impl Display for InvalidFormatDescription
impl Display for InvalidHeaderName
impl Display for InvalidHeaderValue
impl Display for InvalidLength
impl Display for InvalidLengthError
impl Display for InvalidMethod
impl Display for InvalidNameError
impl Display for InvalidNameError
impl Display for InvalidOutputSize
impl Display for InvalidResponseKind
impl Display for InvalidStatusCode
impl Display for InvalidUri
impl Display for InvalidUriParts
impl Display for InvalidVariant
impl Display for IpNextHeaderProtocol
impl Display for Ipv4Net
impl Display for Ipv6Net
impl Display for IrohAttr
impl Display for JoinError
impl Display for KdfAlg
impl Display for KeyParsingError
impl Display for KeyRejected
impl Display for KeyUsage
impl Display for KeyValue
impl Display for Keypair
impl Display for Label
impl Display for LabelError
impl Display for Language
impl Display for Language
impl Display for LanguageIdentifier
impl Display for LanguageIdentifierError
impl Display for Length
impl Display for LengthDelimitedCodecError
impl Display for LengthLimitError
impl Display for Level
impl Display for LevelFilter
impl Display for LimitError
impl Display for LinesCodecError
impl Display for LoadError
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 MacAddr
impl Display for MacAddr
impl Display for MacError
impl Display for Mandatory
impl Display for Marker
impl Display for MatchError
impl Display for MatchError
impl Display for MaxSizeReached
impl Display for Message
impl Display for Message
impl Display for Message
impl Display for MessageType
impl Display for Method
impl Display for MismatchedRootSet
impl Display for MonotonicError
impl Display for Month
impl Display for Mpint
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 pref flags 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 Name
impl Display for Name
impl Display for NameServerConfig
impl Display for Network
impl Display for NodeTicket
impl Display for None
impl Display for NonexistentRoute
impl Display for NullPtrError
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 OpCode
impl Display for OtherError
impl Display for Output
impl Display for OverflowError
impl Display for OwnedAttribute
impl Display for OwnedName
impl Display for PEMError
impl Display for PTR
impl Display for ParameterError
impl Display for ParameterError
impl Display for Parse
impl Display for ParseAlphabetError
impl Display for ParseAlphabetError
impl Display for ParseColorError
impl Display for ParseError
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 ParseLevelError
impl Display for ParseLevelFilterError
impl Display for ParseMacAddrErr
impl Display for ParseMacAddrError
impl Display for ParseOidError
impl Display for ParserError
impl Display for PathAndQuery
impl Display for PatternIDError
impl Display for PatternIDError
impl Display for PatternSetInsertError
impl Display for PauseStreamError
impl Display for Pcg64
impl Display for Pem
impl Display for PemError
impl Display for Pid
impl Display for PingError
impl Display for PingIdentifier
impl Display for PingSequence
impl Display for PlayStreamError
impl Display for PodCastError
impl Display for PopError
impl Display for PortMappingProtocol
impl Display for Prefix
impl Display for PrimitiveDateTime
impl Display for PrintableString
impl Display for ProbeOutput
impl Display for Property
impl Display for ProtoError
impl Display for ProtoErrorKind
impl Display for Protocol
impl Display for ProtocolError
impl Display for PublicKey
impl Display for PublicKey
impl Display for Query
impl Display for RData
impl Display for ReadError
impl Display for ReadError
impl Display for ReadExactError
impl Display for ReadToEndError
impl Display for ReadableError
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 RecvError
impl Display for RecvError
impl Display for RecvTimeoutError
impl Display for RecvTimeoutError
impl Display for Regex
impl Display for Regex
impl Display for Region
impl Display for RelayMap
impl Display for RelayNode
impl Display for RelayUrl
impl Display for RemovePortError
impl Display for Report
impl Display for RequestError
impl Display for ResolveError
impl Display for ResolveErrorKind
impl Display for ResourceLimitReached
impl Display for ResponseCode
impl Display for ReuniteError
impl Display for ReuniteError
impl Display for Rfc3339Timestamp
impl Display for RpcError
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
RFC 2782, DNS SRV RR, February 2000
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
draft-ietf-dnsop-svcb-https-03 SVCB and HTTPS RRs for DNS, February 2021
simple.example. 7200 IN HTTPS 1 . alpn=h3
pool 7200 IN HTTPS 1 h3pool alpn=h2,h3 echconfig="123..."
HTTPS 2 . alpn=h2 echconfig="abc..."
@ 7200 IN HTTPS 0 www
_8765._baz.api.example.com. 7200 IN SVCB 0 svc4-baz.example.net.
impl Display for SampleFormat
impl Display for Scheme
impl Display for ScopedIp
impl Display for Script
impl Display for SearchError
impl Display for SecretKey
impl Display for SelectError
impl Display for SelectTimeoutError
impl Display for SelemChannelId
impl Display for SendDatagramError
impl Display for SendDatagramError
impl Display for SendError
impl Display for SerialNumber
impl Display for SerializeError
impl Display for SerializeError
impl Display for SetGlobalDefaultError
impl Display for SignError
impl Display for Signal
impl Display for Signature
impl Display for SignedPacket
impl Display for SimpleDnsError
impl Display for SmallIndexError
impl Display for SoCVendorBrand
impl Display for SocketAddr
impl Display for SpawnError
impl Display for SpecificationError
impl Display for StartError
impl Display for StateIDError
impl Display for StateIDError
impl Display for StatusCode
Formats the status code, including the canonical reason.
§Example
assert_eq!(format!("{}", StatusCode::OK), "200 OK");
impl Display for StoppedError
impl Display for StreamCipherError
impl Display for StreamError
impl Display for StreamId
impl Display for StunAttributeError
impl Display for StunDecodeError
impl Display for StunEncodeError
impl Display for StunError
impl Display for StunErrorInfo
impl Display for StunErrorLevel
impl Display for StunErrorType
impl Display for StunMessageError
impl Display for Suffix
impl Display for SupportedStreamConfigsError
impl Display for SurgeError
impl Display for SvcParamKey
impl Display for SvcParamValue
impl Display for TLSA
RFC 6698, DNS-Based Authentication for TLS
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 Tag
impl Display for Tag
impl Display for Tag
impl Display for Tag
impl Display for TagMode
impl Display for TagNumber
impl Display for Targets
impl Display for TeletexString
impl Display for TextPosition
impl Display for TextStyle
impl Display for Time
impl Display for TimeBase
impl Display for TimeSpec
impl Display for TimeVal
impl Display for TimeoutError
impl Display for Timestamp
impl Display for TinyStrError
impl Display for TlsError
impl Display for ToStrError
impl Display for TopologyType
impl Display for TransactionId
impl Display for Transport
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 TryRecvError
impl Display for TryRecvError
impl Display for TryRecvError
impl Display for TryReserveError
impl Display for TrySelectError
impl Display for TxtProperties
impl Display for TxtProperty
impl Display for UnexpectedError
impl Display for UnicodeWordBoundaryError
impl Display for UnicodeWordError
impl Display for UnicodeWordError
impl Display for Unknown
impl Display for UnknownStream
impl Display for UnknownStream
impl Display for Unspecified
impl Display for UnsupportedError
impl Display for UnsupportedOperationError
impl Display for Uri
impl Display for UrlError
impl Display for UtcOffset
impl Display for UtcTime
impl Display for Value
impl Display for Value
impl Display for VarInt
impl Display for VarIntBoundsExceeded
impl Display for Variant
impl Display for VendorInfo
impl Display for VerificationError
impl Display for VerifierBuilderError
impl Display for Weekday
impl Display for WriteError
impl Display for WriteError
impl Display for WyRand
impl Display for X509Error
impl Display for X509Version
impl Display for XmlVersion
impl Display for Z32Error
impl Display for dyn Value
impl Display for i24
impl Display for u24
impl<'a> Display for FieldIdx<'a>
impl<'a> Display for Unexpected<'a>
impl<'a> Display for SchemaFieldNotFoundError<'a>
impl<'a> Display for EscapeAscii<'a>
impl<'a> Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::str::EscapeDebug<'a>
impl<'a> Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::str::EscapeDefault<'a>
impl<'a> Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::str::EscapeUnicode<'a>
impl<'a> Display for AnsiGenericString<'a, str>
impl<'a> Display for AnsiGenericStrings<'a, str>
impl<'a> Display for Attribute<'a>
impl<'a> Display for BufReadDecoderError<'a>
impl<'a> Display for CharacterString<'a>
impl<'a> Display for DecodeError<'a>
impl<'a> Display for GeneralName<'a>
impl<'a> Display for Ia5StringRef<'a>
impl<'a> Display for Name<'a>
impl<'a> Display for Name<'a>
impl<'a> Display for Oid<'a>
impl<'a> Display for PercentEncode<'a>
impl<'a> Display for PrintableStringRef<'a>
impl<'a> Display for TeletexStringRef<'a>
impl<'a> Display for Utf8StringRef<'a>
impl<'a> Display for ValueSet<'a>
impl<'a> Display for VideotexStringRef<'a>
impl<'a> Display for X509Name<'a>
impl<'a> Display for dyn Expected + 'a
impl<'a, 'b> Display for ReprDisplay<'a, 'b>where
'b: 'a,
impl<'a, 'e, E> Display for Base64Display<'a, 'e, E>where
E: Engine,
impl<'a, 'e, E> Display for Base64Display<'a, 'e, E>where
E: Engine,
impl<'a, K, V> Display for std::collections::hash::map::OccupiedError<'a, K, V>
impl<'a, K, V, A> Display for bones_framework::asset::prelude::bones_utils::prelude::alloc::collections::btree_map::OccupiedError<'a, K, V, A>
impl<'a, K, V, S, A> Display for bones_framework::asset::prelude::bones_utils::prelude::hashbrown::hash_map::OccupiedError<'a, K, V, S, A>
impl<'a, K, V, T> Display for MappedRef<'a, K, V, T>
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 bones_framework::asset::prelude::bones_utils::prelude::parking_lot::lock_api::MappedMutexGuard<'a, R, T>
impl<'a, R, T> Display for bones_framework::asset::prelude::bones_utils::prelude::parking_lot::lock_api::MappedRwLockReadGuard<'a, R, T>
impl<'a, R, T> Display for bones_framework::asset::prelude::bones_utils::prelude::parking_lot::lock_api::MappedRwLockWriteGuard<'a, R, T>
impl<'a, R, T> Display for bones_framework::asset::prelude::bones_utils::prelude::parking_lot::lock_api::MutexGuard<'a, R, T>
impl<'a, R, T> Display for bones_framework::asset::prelude::bones_utils::prelude::parking_lot::lock_api::RwLockReadGuard<'a, R, T>
impl<'a, R, T> Display for RwLockUpgradableReadGuard<'a, R, T>
impl<'a, R, T> Display for bones_framework::asset::prelude::bones_utils::prelude::parking_lot::lock_api::RwLockWriteGuard<'a, R, T>
impl<'a, T> Display for MaybeOwned<'a, T>where
T: Display,
impl<'a, T> Display for MaybeOwnedMut<'a, T>where
T: Display,
impl<'a, T> Display for bones_framework::lib::ecs::prelude::Ref<'a, T>
impl<'a, T> Display for bones_framework::lib::ecs::prelude::RefMut<'a, 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<'a, T, O> Display for Domain<'a, Const, T, O>where
O: BitOrder,
T: BitStore,
impl<'gc> Display for bones_framework::prelude::piccolo::Error<'gc>
impl<'gc> Display for bones_framework::prelude::piccolo::Value<'gc>
impl<'gc> Display for LuaError<'gc>
impl<'gc> Display for bones_framework::prelude::piccolo::String<'gc>
impl<'gc, T> Display for Gc<'gc, T>
impl<'i, R> Display for Pair<'i, R>where
R: RuleType,
impl<'i, R> Display for Pairs<'i, R>where
R: RuleType,
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<'t> Display for CloseFrame<'t>
impl<'t> Display for CloseFrame<'t>
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, O> Display for BitArray<A, O>where
O: BitOrder,
A: BitViewSized,
impl<B> Display for Cow<'_, B>
impl<E> Display for std::error::Report<E>where
E: Error,
impl<E> Display for AggregateError<E>where
E: Display,
impl<E> Display for Err<E>where
E: Debug,
impl<E> Display for Error<E>where
E: Display,
impl<E> Display for FormattedFields<E>where
E: ?Sized,
impl<E> Display for PlaySoundError<E>
impl<E, const N: usize> Display for AggregateError<E, N>where
E: Display,
impl<Enum> Display for TryFromPrimitiveError<Enum>where
Enum: TryFromPrimitive,
impl<F> Display for FormatterFn<F>
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 Recompositions<I>
impl<I> Display for Replacements<I>
impl<I> Display for VerboseError<I>where
I: Display,
impl<M, T, O> Display for BitRef<'_, M, T, O>where
M: Mutability,
T: BitStore,
O: BitOrder,
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 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<P> Display for Arc<P>where
P: Pool,
<P as Pool>::Data: Display,
impl<P> Display for Box<P>where
P: Pool,
<P as Pool>::Data: Display,
impl<P> Display for Gateway<P>
impl<P> Display for NotUntil<P>where
P: Reference,
impl<Ptr> Display for Pin<Ptr>where
Ptr: Display,
impl<R> Display for ErrorVariant<R>where
R: RuleType,
impl<R> Display for pest::error::Error<R>where
R: RuleType,
impl<R> Display for BitEnd<R>where
R: BitRegister,
impl<R> Display for BitIdx<R>where
R: BitRegister,
impl<R> Display for BitIdxError<R>where
R: BitRegister,
impl<R> Display for BitMask<R>where
R: BitRegister,
impl<R> Display for BitPos<R>where
R: BitRegister,
impl<R> Display for BitSel<R>where
R: BitRegister,
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.