Trait rocket::mtls::oid::asn1_rs::nom::lib::std::convert::From

1.0.0 · source ·
pub trait From<T>: Sized {
    // Required method
    fn from(value: T) -> Self;
}
Available on crate feature mtls only.
Expand description

Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.

One should always prefer implementing From over Into because implementing From automatically provides one with an implementation of Into thanks to the blanket implementation in the standard library.

Only implement Into when targeting a version prior to Rust 1.41 and converting to a type outside the current crate. From was not able to do these types of conversions in earlier versions because of Rust’s orphaning rules. See Into for more details.

Prefer using Into over using From when specifying trait bounds on a generic function. This way, types that directly implement Into can be used as arguments as well.

The From trait is also very useful when performing error handling. When constructing a function that is capable of failing, the return type will generally be of the form Result<T, E>. From simplifies error handling by allowing a function to return a single error type that encapsulates multiple error types. See the “Examples” section and the book for more details.

Note: This trait must not fail. The From trait is intended for perfect conversions. If the conversion can fail or is not perfect, use TryFrom.

§Generic Implementations

  • From<T> for U implies Into<U> for T
  • From is reflexive, which means that From<T> for T is implemented

§When to implement From

While there’s no technical restrictions on which conversions can be done using a From implementation, the general expectation is that the conversions should typically be restricted as follows:

  • The conversion is infallible: if the conversion can fail, use TryFrom instead; don’t provide a From impl that panics.

  • The conversion is lossless: semantically, it should not lose or discard information. For example, i32: From<u16> exists, where the original value can be recovered using u16: TryFrom<i32>. And String: From<&str> exists, where you can get something equivalent to the original value via Deref. But From cannot be used to convert from u32 to u16, since that cannot succeed in a lossless way. (There’s some wiggle room here for information not considered semantically relevant. For example, Box<[T]>: From<Vec<T>> exists even though it might not preserve capacity, like how two vectors can be equal despite differing capacities.)

  • The conversion is value-preserving: the conceptual kind and meaning of the resulting value is the same, even though the Rust type and technical representation might be different. For example -1_i8 as u8 is lossless, since as casting back can recover the original value, but that conversion is not available via From because -1 and 255 are different conceptual values (despite being identical bit patterns technically). But f32: From<i16> is available because 1_i16 and 1.0_f32 are conceptually the same real number (despite having very different bit patterns technically). String: From<char> is available because they’re both text, but String: From<u32> is not available, since 1 (a number) and "1" (text) are too different. (Converting values to text is instead covered by the Display trait.)

  • The conversion is obvious: it’s the only reasonable conversion between the two types. Otherwise it’s better to have it be a named method or constructor, like how str::as_bytes is a method and how integers have methods like u32::from_ne_bytes, u32::from_le_bytes, and u32::from_be_bytes, none of which are From implementations. Whereas there’s only one reasonable way to wrap an Ipv6Addr into an IpAddr, thus IpAddr: From<Ipv6Addr> exists.

§Examples

String implements From<&str>:

An explicit conversion from a &str to a String is done as follows:

let string = "hello".to_string();
let other_string = String::from("hello");

assert_eq!(string, other_string);

While performing error handling it is often useful to implement From for your own error type. By converting underlying error types to our own custom error type that encapsulates the underlying error type, we can return a single error type without losing information on the underlying cause. The ‘?’ operator automatically converts the underlying error type to our custom error type with From::from.

use std::fs;
use std::io;
use std::num;

enum CliError {
    IoError(io::Error),
    ParseError(num::ParseIntError),
}

impl From<io::Error> for CliError {
    fn from(error: io::Error) -> Self {
        CliError::IoError(error)
    }
}

impl From<num::ParseIntError> for CliError {
    fn from(error: num::ParseIntError) -> Self {
        CliError::ParseError(error)
    }
}

fn open_and_parse_file(file_name: &str) -> Result<i32, CliError> {
    let mut contents = fs::read_to_string(&file_name)?;
    let num: i32 = contents.trim().parse()?;
    Ok(num)
}

Required Methods§

1.0.0 · source

fn from(value: T) -> Self

Converts to this type from the input type.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl From<&'static str> for StrContextValue

source§

impl From<&'static str> for bytes::bytes::Bytes

source§

impl From<&'static Location<'static>> for Source

source§

impl From<&'static Tls12CipherSuite> for rustls::suites::SupportedCipherSuite

source§

impl From<&'static Tls12CipherSuite> for rustls::suites::SupportedCipherSuite

source§

impl From<&'static Tls13CipherSuite> for rustls::suites::SupportedCipherSuite

source§

impl From<&'static Tls13CipherSuite> for rustls::suites::SupportedCipherSuite

source§

impl From<&'static [u8]> for bytes::bytes::Bytes

source§

impl From<&ExpectCt> for rocket::http::Header<'static>

source§

impl From<&Frame> for rocket::http::Header<'static>

source§

impl From<&Hsts> for rocket::http::Header<'static>

source§

impl From<&NoSniff> for rocket::http::Header<'static>

source§

impl From<&Prefetch> for rocket::http::Header<'static>

source§

impl From<&Referrer> for rocket::http::Header<'static>

source§

impl From<&XssFilter> for rocket::http::Header<'static>

source§

impl From<&SocketAddress<'_>> for SocketAddr

source§

impl From<&BorrowedFormatItem<'_>> for OwnedFormatItem

source§

impl From<&str> for rocket::serde::json::Value

source§

impl From<&str> for Source

source§

impl From<&str> for figment::value::value::Value

§

impl From<&str> for RawStrBuf

1.17.0 · source§

impl From<&str> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<str>

1.0.0 · source§

impl From<&str> for String

1.0.0 · source§

impl From<&str> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>

1.21.0 · source§

impl From<&str> for Rc<str>

1.21.0 · source§

impl From<&str> for Arc<str>

source§

impl From<&str> for allocator_api2::stable::vec::Vec<u8>

source§

impl From<&str> for figment::error::Error

source§

impl From<&str> for ServerName

source§

impl From<&str> for InternalString

source§

impl From<&str> for RawString

§

impl From<&Cookie<'_>> for rocket::http::Header<'static>

§

impl From<&RawStr> for RawStrBuf

source§

impl From<&UncasedStr> for Arc<UncasedStr>

source§

impl From<&Permission> for rocket::http::Header<'static>

source§

impl From<&Formatter<'_>> for FormatterOptions

1.35.0 · source§

impl From<&String> for String

source§

impl From<&String> for InternalString

source§

impl From<&String> for RawString

1.17.0 · source§

impl From<&CStr> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<CStr>

1.7.0 · source§

impl From<&CStr> for CString

1.24.0 · source§

impl From<&CStr> for Rc<CStr>

1.24.0 · source§

impl From<&CStr> for Arc<CStr>

source§

impl From<&CStr> for allocator_api2::stable::boxed::Box<CStr>

source§

impl From<&Ipv4Addr> for IpV4Address

source§

impl From<&Ipv6Addr> for IpV6Address

source§

impl From<&StreamResult> for Result<MZStatus, MZError>

1.17.0 · source§

impl From<&OsStr> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<OsStr>

1.24.0 · source§

impl From<&OsStr> for Rc<OsStr>

1.24.0 · source§

impl From<&OsStr> for Arc<OsStr>

source§

impl From<&Path> for Source

1.17.0 · source§

impl From<&Path> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<Path>

1.24.0 · source§

impl From<&Path> for Rc<Path>

1.24.0 · source§

impl From<&Path> for Arc<Path>

source§

impl From<&Aes128Enc> for Aes128

source§

impl From<&Aes128Enc> for Aes128Dec

source§

impl From<&Aes192Enc> for Aes192

source§

impl From<&Aes192Enc> for Aes192Dec

source§

impl From<&Aes256Enc> for Aes256

source§

impl From<&Aes256Enc> for Aes256Dec

source§

impl From<&ObjectIdentifier> for ObjectIdentifier

source§

impl From<&SocketAddressV4> for SocketAddr

source§

impl From<&SocketAddressV4> for SocketAddrV4

source§

impl From<&SocketAddressV6> for SocketAddr

source§

impl From<&SocketAddressV6> for SocketAddrV6

source§

impl From<&InternalString> for InternalString

source§

impl From<&InternalString> for RawString

source§

impl From<&ChaCha8Rng> for rand_chacha::chacha::ChaCha8Rng

source§

impl From<&ChaCha12Rng> for rand_chacha::chacha::ChaCha12Rng

source§

impl From<&ChaCha20Rng> for rand_chacha::chacha::ChaCha20Rng

source§

impl From<&[u8; 12]> for Nonce

source§

impl From<&[u8; 16]> for Nonce

source§

impl From<&[u8]> for SharedSecret

source§

impl From<&[u8]> for PrefixedPayload

source§

impl From<&[u8]> for rustls::quic::Tag

source§

impl From<&[u32; 3]> for Nonce

source§

impl From<&[BigEndian<u32>; 3]> for Nonce

source§

impl From<&[LittleEndian<u32>; 3]> for Nonce

1.44.0 · source§

impl From<&mut str> for String

source§

impl From<&mut Formatter<'_>> for FormatterOptions

source§

impl From<(&'static str, &'static str)> for OidEntry

source§

impl From<(Option<isize>, Option<isize>)> for rocket::form::error::ErrorKind<'_>

source§

impl From<(Option<u64>, Option<u64>)> for rocket::form::error::ErrorKind<'_>

source§

impl From<(Option<ByteUnit>, Option<ByteUnit>)> for rocket::form::error::ErrorKind<'_>

source§

impl From<(IpAddr, u16)> for SocketAddress

source§

impl From<(Ipv4Addr, u16)> for SocketAddressV4

source§

impl From<(Ipv6Addr, u16)> for SocketAddressV6

source§

impl From<ErrorKind> for rocket::Error

source§

impl From<Error<'_>> for rocket::form::Error<'_>

Available on crate feature json only.
source§

impl From<Error> for rocket::listener::Error

source§

impl From<Err<Error>> for rocket::mtls::x509::der_parser::asn1_rs::Error

source§

impl From<Err<Error>> for X509Error

source§

impl From<Err<X509Error>> for rocket::mtls::Error

source§

impl From<Err<X509Error>> for X509Error

source§

impl From<Error> for Err<Error>

source§

impl From<Error> for SerializeError

source§

impl From<Error> for X509Error

source§

impl From<Real> for f32

source§

impl From<Real> for f64

source§

impl From<ErrorKind> for X509Error

source§

impl From<TryReserveErrorKind> for TryReserveError

source§

impl From<Infallible> for rocket::tls::Error

Available on crate feature tls only.
1.36.0 · source§

impl From<Infallible> for TryFromSliceError

1.34.0 · source§

impl From<Infallible> for core::num::error::TryFromIntError

source§

impl From<Infallible> for http::error::Error

source§

impl From<Infallible> for ValidationError

source§

impl From<Option<Level>> for LevelFilter

source§

impl From<Option<Timestamp>> for Timer

source§

impl From<X509Error> for Err<X509Error>

1.45.0 · source§

impl From<Cow<'_, str>> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<str>

1.45.0 · source§

impl From<Cow<'_, CStr>> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<CStr>

1.45.0 · source§

impl From<Cow<'_, OsStr>> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<OsStr>

1.45.0 · source§

impl From<Cow<'_, Path>> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<Path>

source§

impl From<AsciiChar> for char

source§

impl From<AsciiChar> for u8

source§

impl From<AsciiChar> for u16

source§

impl From<AsciiChar> for u32

source§

impl From<AsciiChar> for u64

source§

impl From<AsciiChar> for u128

source§

impl From<IpAddr> for rustls_pki_types::server_name::IpAddr

source§

impl From<IpAddr> for webpki::subject_name::ip_address::IpAddr

source§

impl From<SocketAddr> for Endpoint

source§

impl From<SocketAddr> for SocketAddress

source§

impl From<SocketAddr> for SockAddr

1.14.0 · source§

impl From<ErrorKind> for std::io::error::Error

Intended for use for errors not exposed to the user, where allocating onto the heap (for normal construction via Error::new) is too costly.

source§

impl From<DecryptionContext> for EncryptionContext

source§

impl From<EncryptionContext> for DecryptionContext

source§

impl From<DecodeError> for base64::decode::DecodeSliceError

source§

impl From<DecodeError> for base64::decode::DecodeSliceError

source§

impl From<Either<Error, Error>> for rocket::listener::Error

source§

impl From<Kind> for figment::error::Error

source§

impl From<Empty> for figment::value::value::Value

source§

impl From<Num> for figment::value::value::Value

source§

impl From<NumValueReadError> for rocket::serde::msgpack::Error

source§

impl From<ValueReadError> for rocket::serde::msgpack::Error

source§

impl From<ValueWriteError> for rmp_serde::encode::Error

source§

impl From<ValueWriteError> for std::io::error::Error

source§

impl From<Marker> for u8

source§

impl From<IpAddr> for core::net::ip_addr::IpAddr

source§

impl From<Error> for ControlFlow<Error, Error>

source§

impl From<Error> for ControlFlow<Error, Error>

source§

impl From<Error> for CertRevocationListError

source§

impl From<EncryptError> for EarlyDataError

source§

impl From<AlertDescription> for u8

source§

impl From<CertificateCompressionAlgorithm> for u16

source§

impl From<CipherSuite> for u16

source§

impl From<ContentType> for u8

source§

impl From<HandshakeType> for u8

source§

impl From<ProtocolVersion> for u16

source§

impl From<SignatureAlgorithm> for u8

source§

impl From<SignatureScheme> for u16

source§

impl From<CertRevocationListError> for rustls::error::Error

source§

impl From<CertRevocationListError> for rustls::error::Error

source§

impl From<CertRevocationListError> for VerifierBuilderError

source§

impl From<CertificateError> for rustls::enums::AlertDescription

source§

impl From<CertificateError> for rustls::enums::AlertDescription

source§

impl From<CertificateError> for rustls::error::Error

source§

impl From<CertificateError> for rustls::error::Error

source§

impl From<Error> for rocket::tls::Error

Available on crate feature tls only.
source§

impl From<InvalidMessage> for rustls::error::Error

source§

impl From<InvalidMessage> for rustls::error::Error

source§

impl From<PeerIncompatible> for rustls::error::Error

source§

impl From<PeerIncompatible> for rustls::error::Error

source§

impl From<PeerMisbehaved> for rustls::error::Error

source§

impl From<PeerMisbehaved> for rustls::error::Error

source§

impl From<HashAlgorithm> for u8

source§

impl From<NamedGroup> for u16

source§

impl From<VerifierBuilderError> for rocket::tls::Error

Available on crate feature tls only.
source§

impl From<DecoderError> for &'static str

source§

impl From<DecoderError> for s2n_quic_core::crypto::packet_protection::Error

source§

impl From<DecoderError> for s2n_quic_core::crypto::tls::error::Error

source§

impl From<DecoderError> for s2n_quic_core::transport::error::Error

Implements conversion from decoder errors

source§

impl From<DecoderError> for ValidationError

source§

impl From<Error> for std::io::error::ErrorKind

source§

impl From<Error> for ProcessingError

source§

impl From<Error> for StreamError

source§

impl From<Error> for std::io::error::Error

§

impl From<Error> for ConnectionError

source§

impl From<Error> for s2n_quic_core::transport::error::Error

source§

impl From<SocketAddress<'_>> for SocketAddr

source§

impl From<SocketAddress<'_>> for s2n_quic_core::path::LocalAddress

source§

impl From<SocketAddress<'_>> for s2n_quic_core::path::RemoteAddress

source§

impl From<SocketAddress> for SocketAddr

source§

impl From<SocketAddress> for s2n_quic_core::path::LocalAddress

source§

impl From<SocketAddress> for s2n_quic_core::path::RemoteAddress

source§

impl From<PacketType> for u8

source§

impl From<StreamError> for std::io::error::ErrorKind

source§

impl From<StreamError> for std::io::error::Error

§

impl From<StreamError> for ReadError

§

impl From<StreamError> for SendStreamError

source§

impl From<Unexpected<'_>> for Actual

source§

impl From<Format> for time::error::Error

source§

impl From<InvalidFormatDescription> for time::error::Error

source§

impl From<Parse> for time::error::Error

source§

impl From<ParseFromDescription> for time::error::Error

source§

impl From<ParseFromDescription> for Parse

source§

impl From<TryFromParsed> for time::error::Error

source§

impl From<TryFromParsed> for Parse

source§

impl From<BorrowedFormatItem<'_>> for OwnedFormatItem

source§

impl From<Component> for BorrowedFormatItem<'_>

source§

impl From<Component> for OwnedFormatItem

source§

impl From<Month> for u8

source§

impl From<Error> for TomlError

source§

impl From<Attribute> for Style

source§

impl From<Quirk> for Style

source§

impl From<Color> for Style

source§

impl From<bool> for rocket::serde::json::Value

source§

impl From<bool> for figment::value::value::Value

source§

impl From<bool> for toml::value::Value

source§

impl From<bool> for toml_edit::value::Value

1.68.0 · source§

impl From<bool> for f32

1.68.0 · source§

impl From<bool> for f64

1.28.0 · source§

impl From<bool> for i8

1.28.0 · source§

impl From<bool> for i16

1.28.0 · source§

impl From<bool> for i32

1.28.0 · source§

impl From<bool> for i64

1.28.0 · source§

impl From<bool> for i128

1.28.0 · source§

impl From<bool> for isize

1.28.0 · source§

impl From<bool> for u8

1.28.0 · source§

impl From<bool> for u16

1.28.0 · source§

impl From<bool> for u32

1.28.0 · source§

impl From<bool> for u64

1.28.0 · source§

impl From<bool> for u128

1.28.0 · source§

impl From<bool> for usize

source§

impl From<bool> for BigInt

source§

impl From<bool> for BigUint

1.24.0 · source§

impl From<bool> for AtomicBool

source§

impl From<char> for figment::value::value::Value

source§

impl From<char> for StrContextValue

1.13.0 · source§

impl From<char> for u32

1.51.0 · source§

impl From<char> for u64

1.51.0 · source§

impl From<char> for u128

1.46.0 · source§

impl From<char> for String

1.6.0 · source§

impl From<f16> for f64

1.6.0 · source§

impl From<f16> for f128

source§

impl From<f32> for rocket::serde::json::Value

source§

impl From<f32> for Real

source§

impl From<f32> for Num

source§

impl From<f32> for figment::value::value::Value

source§

impl From<f32> for toml::value::Value

1.6.0 · source§

impl From<f32> for f64

1.6.0 · source§

impl From<f32> for f128

source§

impl From<f64> for rocket::serde::json::Value

source§

impl From<f64> for Real

source§

impl From<f64> for Num

source§

impl From<f64> for figment::value::value::Value

source§

impl From<f64> for toml::value::Value

source§

impl From<f64> for toml_edit::value::Value

1.6.0 · source§

impl From<f64> for f128

source§

impl From<i8> for rocket::serde::json::Value

source§

impl From<i8> for Num

source§

impl From<i8> for figment::value::value::Value

source§

impl From<i8> for toml::value::Value

1.6.0 · source§

impl From<i8> for f32

1.6.0 · source§

impl From<i8> for f64

1.5.0 · source§

impl From<i8> for i16

1.5.0 · source§

impl From<i8> for i32

1.5.0 · source§

impl From<i8> for i64

1.26.0 · source§

impl From<i8> for i128

1.5.0 · source§

impl From<i8> for isize

source§

impl From<i8> for ByteUnit

source§

impl From<i8> for Integer<'_>

source§

impl From<i8> for BigInt

1.34.0 · source§

impl From<i8> for AtomicI8

source§

impl From<i8> for i24

source§

impl From<i8> for i48

source§

impl From<i8> for serde_json::number::Number

source§

impl From<i16> for rocket::serde::json::Value

source§

impl From<i16> for Num

source§

impl From<i16> for figment::value::value::Value

1.6.0 · source§

impl From<i16> for f32

1.6.0 · source§

impl From<i16> for f64

1.5.0 · source§

impl From<i16> for i32

1.5.0 · source§

impl From<i16> for i64

1.26.0 · source§

impl From<i16> for i128

1.26.0 · source§

impl From<i16> for isize

source§

impl From<i16> for ByteUnit

source§

impl From<i16> for Integer<'_>

source§

impl From<i16> for BigInt

1.34.0 · source§

impl From<i16> for AtomicI16

source§

impl From<i16> for HeaderValue

source§

impl From<i16> for i24

source§

impl From<i16> for i48

source§

impl From<i16> for s2n_codec::zerocopy::I16

source§

impl From<i16> for serde_json::number::Number

source§

impl From<i32> for rocket::serde::json::Value

source§

impl From<i32> for Num

source§

impl From<i32> for figment::value::value::Value

source§

impl From<i32> for toml::value::Value

1.6.0 · source§

impl From<i32> for f64

1.5.0 · source§

impl From<i32> for i64

1.26.0 · source§

impl From<i32> for i128

source§

impl From<i32> for ByteUnit

source§

impl From<i32> for Integer<'_>

source§

impl From<i32> for BigInt

1.34.0 · source§

impl From<i32> for AtomicI32

source§

impl From<i32> for HeaderValue

source§

impl From<i32> for i48

source§

impl From<i32> for s2n_codec::zerocopy::I32

source§

impl From<i32> for serde_json::number::Number

source§

impl From<i32> for Domain

source§

impl From<i32> for socket2::Protocol

source§

impl From<i32> for Type

source§

impl From<i32> for SignalKind

source§

impl From<i64> for rocket::serde::json::Value

source§

impl From<i64> for Num

source§

impl From<i64> for figment::value::value::Value

source§

impl From<i64> for toml::value::Value

source§

impl From<i64> for toml_edit::value::Value

1.26.0 · source§

impl From<i64> for i128

source§

impl From<i64> for ByteUnit

source§

impl From<i64> for Integer<'_>

source§

impl From<i64> for BigInt

1.34.0 · source§

impl From<i64> for AtomicI64

source§

impl From<i64> for HeaderValue

source§

impl From<i64> for s2n_codec::zerocopy::I64

source§

impl From<i64> for serde_json::number::Number

source§

impl From<i128> for Num

source§

impl From<i128> for figment::value::value::Value

source§

impl From<i128> for ByteUnit

source§

impl From<i128> for Integer<'_>

source§

impl From<i128> for BigInt

source§

impl From<i128> for s2n_codec::zerocopy::I128

source§

impl From<isize> for rocket::serde::json::Value

source§

impl From<isize> for Num

source§

impl From<isize> for figment::value::value::Value

source§

impl From<isize> for ByteUnit

source§

impl From<isize> for BigInt

1.23.0 · source§

impl From<isize> for AtomicIsize

source§

impl From<isize> for HeaderValue

source§

impl From<isize> for serde_json::number::Number

1.34.0 · source§

impl From<!> for Infallible

source§

impl From<!> for core::num::error::TryFromIntError

source§

impl From<u8> for rocket::serde::json::Value

source§

impl From<u8> for Num

source§

impl From<u8> for figment::value::value::Value

source§

impl From<u8> for Marker

source§

impl From<u8> for rustls::enums::AlertDescription

source§

impl From<u8> for rustls::enums::AlertDescription

source§

impl From<u8> for rustls::enums::ContentType

source§

impl From<u8> for rustls::enums::ContentType

source§

impl From<u8> for rustls::enums::HandshakeType

source§

impl From<u8> for rustls::enums::HandshakeType

source§

impl From<u8> for rustls::enums::SignatureAlgorithm

source§

impl From<u8> for rustls::enums::SignatureAlgorithm

source§

impl From<u8> for AlertLevel

source§

impl From<u8> for CertificateStatusType

source§

impl From<u8> for ClientCertificateType

source§

impl From<u8> for Compression

source§

impl From<u8> for ECCurveType

source§

impl From<u8> for ECPointFormat

source§

impl From<u8> for rustls::msgs::enums::HashAlgorithm

source§

impl From<u8> for rustls::msgs::enums::HashAlgorithm

source§

impl From<u8> for HeartbeatMessageType

source§

impl From<u8> for HeartbeatMode

source§

impl From<u8> for KeyUpdateRequest

source§

impl From<u8> for PSKKeyExchangeMode

source§

impl From<u8> for ServerNameType

source§

impl From<u8> for KeyPhase

source§

impl From<u8> for PacketType

source§

impl From<u8> for toml::value::Value

1.13.0 · source§

impl From<u8> for char

Maps a byte in 0x00..=0xFF to a char whose code point has the same value, in U+0000..=U+00FF.

Unicode is designed such that this effectively decodes bytes with the character encoding that IANA calls ISO-8859-1. This encoding is compatible with ASCII.

Note that this is different from ISO/IEC 8859-1 a.k.a. ISO 8859-1 (with one less hyphen), which leaves some “blanks”, byte values that are not assigned to any character. ISO-8859-1 (the IANA one) assigns them to the C0 and C1 control codes.

Note that this is also different from Windows-1252 a.k.a. code page 1252, which is a superset ISO/IEC 8859-1 that assigns some (not all!) blanks to punctuation and various Latin characters.

To confuse things further, on the Web ascii, iso-8859-1, and windows-1252 are all aliases for a superset of Windows-1252 that fills the remaining blanks with corresponding C0 and C1 control codes.

1.6.0 · source§

impl From<u8> for f32

1.6.0 · source§

impl From<u8> for f64

1.5.0 · source§

impl From<u8> for i16

1.5.0 · source§

impl From<u8> for i32

1.5.0 · source§

impl From<u8> for i64

1.26.0 · source§

impl From<u8> for i128

1.26.0 · source§

impl From<u8> for isize

1.5.0 · source§

impl From<u8> for u16

1.5.0 · source§

impl From<u8> for u32

1.5.0 · source§

impl From<u8> for u64

1.26.0 · source§

impl From<u8> for u128

1.5.0 · source§

impl From<u8> for usize

source§

impl From<u8> for ByteUnit

source§

impl From<u8> for Integer<'_>

source§

impl From<u8> for BigInt

source§

impl From<u8> for BigUint

1.34.0 · source§

impl From<u8> for AtomicU8

1.61.0 · source§

impl From<u8> for ExitCode

source§

impl From<u8> for i24

source§

impl From<u8> for i48

source§

impl From<u8> for u24

source§

impl From<u8> for u48

source§

impl From<u8> for s2n_quic_core::application::error::Error

source§

impl From<u8> for VarInt

source§

impl From<u8> for serde_json::number::Number

source§

impl From<u8> for Choice

source§

impl From<u16> for rocket::serde::json::Value

source§

impl From<u16> for Num

source§

impl From<u16> for figment::value::value::Value

source§

impl From<u16> for CertificateCompressionAlgorithm

source§

impl From<u16> for rustls::enums::CipherSuite

source§

impl From<u16> for rustls::enums::CipherSuite

source§

impl From<u16> for rustls::enums::ProtocolVersion

source§

impl From<u16> for rustls::enums::ProtocolVersion

source§

impl From<u16> for rustls::enums::SignatureScheme

source§

impl From<u16> for rustls::enums::SignatureScheme

source§

impl From<u16> for ExtensionType

source§

impl From<u16> for NamedCurve

source§

impl From<u16> for rustls::msgs::enums::NamedGroup

source§

impl From<u16> for rustls::msgs::enums::NamedGroup

1.6.0 · source§

impl From<u16> for f32

1.6.0 · source§

impl From<u16> for f64

1.5.0 · source§

impl From<u16> for i32

1.5.0 · source§

impl From<u16> for i64

1.26.0 · source§

impl From<u16> for i128

1.5.0 · source§

impl From<u16> for u32

1.5.0 · source§

impl From<u16> for u64

1.26.0 · source§

impl From<u16> for u128

1.26.0 · source§

impl From<u16> for usize

source§

impl From<u16> for ByteUnit

source§

impl From<u16> for Integer<'_>

source§

impl From<u16> for BigInt

source§

impl From<u16> for BigUint

1.34.0 · source§

impl From<u16> for AtomicU16

source§

impl From<u16> for HeaderValue

source§

impl From<u16> for i24

source§

impl From<u16> for i48

source§

impl From<u16> for u24

source§

impl From<u16> for u48

source§

impl From<u16> for s2n_codec::zerocopy::U16

source§

impl From<u16> for s2n_quic_core::application::error::Error

source§

impl From<u16> for VarInt

source§

impl From<u16> for serde_json::number::Number

source§

impl From<u32> for rocket::serde::json::Value

source§

impl From<u32> for Num

source§

impl From<u32> for figment::value::value::Value

source§

impl From<u32> for toml::value::Value

1.6.0 · source§

impl From<u32> for f64

1.5.0 · source§

impl From<u32> for i64

1.26.0 · source§

impl From<u32> for i128

1.5.0 · source§

impl From<u32> for u64

1.26.0 · source§

impl From<u32> for u128

source§

impl From<u32> for ByteUnit

source§

impl From<u32> for Integer<'_>

source§

impl From<u32> for OptTaggedParser

source§

impl From<u32> for rocket::mtls::x509::der_parser::asn1_rs::Tag

source§

impl From<u32> for BigInt

source§

impl From<u32> for BigUint

1.1.0 · source§

impl From<u32> for core::net::ip_addr::Ipv4Addr

1.34.0 · source§

impl From<u32> for AtomicU32

source§

impl From<u32> for Reason

source§

impl From<u32> for HeaderValue

source§

impl From<u32> for Mode

source§

impl From<u32> for i48

source§

impl From<u32> for u48

source§

impl From<u32> for s2n_codec::zerocopy::U32

source§

impl From<u32> for s2n_quic_core::application::error::Error

source§

impl From<u32> for VarInt

source§

impl From<u32> for serde_json::number::Number

source§

impl From<u64> for rocket::serde::json::Value

source§

impl From<u64> for Num

source§

impl From<u64> for figment::value::value::Value

1.26.0 · source§

impl From<u64> for i128

1.26.0 · source§

impl From<u64> for u128

source§

impl From<u64> for ByteUnit

source§

impl From<u64> for Integer<'_>

source§

impl From<u64> for BigInt

source§

impl From<u64> for BigUint

1.34.0 · source§

impl From<u64> for AtomicU64

source§

impl From<u64> for HeaderValue

source§

impl From<u64> for s2n_codec::zerocopy::U64

source§

impl From<u64> for serde_json::number::Number

source§

impl From<u128> for Num

source§

impl From<u128> for figment::value::value::Value

source§

impl From<u128> for ByteUnit

source§

impl From<u128> for Integer<'_>

source§

impl From<u128> for BigInt

source§

impl From<u128> for BigUint

1.26.0 · source§

impl From<u128> for core::net::ip_addr::Ipv6Addr

source§

impl From<u128> for s2n_codec::zerocopy::U128

source§

impl From<u128> for Hash128

source§

impl From<()> for rocket::serde::json::Value

source§

impl From<()> for KeyRejected

source§

impl From<()> for aws_lc_rs::error::Unspecified

source§

impl From<usize> for rocket::serde::json::Value

source§

impl From<usize> for Length

source§

impl From<usize> for Num

source§

impl From<usize> for figment::value::value::Value

source§

impl From<usize> for ByteUnit

source§

impl From<usize> for BigInt

source§

impl From<usize> for BigUint

1.23.0 · source§

impl From<usize> for AtomicUsize

source§

impl From<usize> for HeaderValue

source§

impl From<usize> for serde_json::number::Number

source§

impl From<usize> for winnow::stream::Range

source§

impl From<Level> for LevelFilter

source§

impl From<ByteUnit> for u64

source§

impl From<ByteUnit> for u128

source§

impl From<FileServer> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<Route>

§

impl From<Accept> for rocket::http::Header<'static>

Creates a new Header with name Accept and the value set to the HTTP rendering of this Accept header.

§

impl From<ContentType> for rocket::http::Header<'static>

Creates a new Header with name Content-Type and the value set to the HTTP rendering of this Content-Type.

§

impl From<Cookie<'_>> for rocket::http::Header<'static>

§

impl From<MediaType> for rocket::http::ContentType

§

impl From<MediaType> for QMediaType

§

impl From<RawStrBuf> for Cow<'_, RawStr>

§

impl From<Asterisk> for Reference<'_>

source§

impl From<Braced> for Uuid

source§

impl From<Hyphenated> for Uuid

source§

impl From<Simple> for Uuid

source§

impl From<Urn> for Uuid

source§

impl From<Uuid> for Braced

source§

impl From<Uuid> for Hyphenated

source§

impl From<Uuid> for Simple

source§

impl From<Uuid> for Urn

source§

impl From<Uuid> for String

source§

impl From<Uuid> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>

source§

impl From<LevelFilter> for Option<Level>

source§

impl From<RocketFmt<Compact>> for RocketDynFmt

Available on crate feature trace only.
source§

impl From<RocketFmt<Pretty>> for RocketDynFmt

Available on crate feature trace only.
source§

impl From<LayoutError> for TryReserveErrorKind

source§

impl From<LayoutError> for CollectionAllocErr

1.18.0 · source§

impl From<Box<str>> for String

source§

impl From<Box<str>> for InternalString

source§

impl From<Box<str>> for RawString

1.18.0 · source§

impl From<Box<CStr>> for CString

1.18.0 · source§

impl From<Box<OsStr>> for OsString

1.18.0 · source§

impl From<Box<Path>> for PathBuf

source§

impl From<Box<RawValue>> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<str>

source§

impl From<Box<[u8]>> for bytes::bytes::Bytes

source§

impl From<Box<dyn Error + Send + Sync>> for tracing_subscriber::filter::directive::ParseError

1.78.0 · source§

impl From<TryReserveError> for std::io::error::Error

source§

impl From<Range<usize>> for winnow::stream::Range

source§

impl From<RangeFrom<usize>> for winnow::stream::Range

source§

impl From<RangeFull> for winnow::stream::Range

source§

impl From<RangeInclusive<usize>> for winnow::stream::Range

source§

impl From<RangeTo<usize>> for winnow::stream::Range

source§

impl From<RangeToInclusive<usize>> for winnow::stream::Range

source§

impl From<Utf8Error> for rocket::serde::msgpack::Error

source§

impl From<Utf8Error> for rocket::mtls::x509::der_parser::asn1_rs::Error

source§

impl From<Utf8Error> for cookie::parse::ParseError

source§

impl From<FromUtf8Error> for rocket::mtls::x509::der_parser::asn1_rs::Error

source§

impl From<FromUtf16Error> for rocket::mtls::x509::der_parser::asn1_rs::Error

source§

impl From<String> for rocket::serde::json::Value

source§

impl From<String> for Source

source§

impl From<String> for figment::value::value::Value

source§

impl From<String> for InlinableString

source§

impl From<String> for toml::value::Value

source§

impl From<String> for toml_edit::value::Value

source§

impl From<String> for Cookie<'static>

§

impl From<String> for RawStrBuf

source§

impl From<String> for Uncased<'static>

1.20.0 · source§

impl From<String> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<str>

1.14.0 · source§

impl From<String> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>

source§

impl From<String> for BmpString<'_>

source§

impl From<String> for GeneralString<'_>

source§

impl From<String> for GraphicString<'_>

source§

impl From<String> for Ia5String<'_>

source§

impl From<String> for NumericString<'_>

source§

impl From<String> for ObjectDescriptor<'_>

source§

impl From<String> for PrintableString<'_>

source§

impl From<String> for TeletexString<'_>

source§

impl From<String> for UniversalString<'_>

source§

impl From<String> for Utf8String<'_>

source§

impl From<String> for VideotexString<'_>

source§

impl From<String> for VisibleString<'_>

1.21.0 · source§

impl From<String> for Rc<str>

1.21.0 · source§

impl From<String> for Arc<str>

1.0.0 · source§

impl From<String> for OsString

1.0.0 · source§

impl From<String> for PathBuf

source§

impl From<String> for bytes::bytes::Bytes

source§

impl From<String> for figment::error::Error

source§

impl From<String> for ServerName

source§

impl From<String> for InternalString

source§

impl From<String> for toml_edit::key::Key

source§

impl From<String> for RawString

source§

impl From<Vec<BorrowedFormatItem<'_>>> for OwnedFormatItem

source§

impl From<Vec<OwnedFormatItem>> for OwnedFormatItem

source§

impl From<Vec<u8>> for bytes::bytes::Bytes

source§

impl From<Vec<u8>> for ByteBuf

source§

impl From<Vec<u8>> for Der<'static>

source§

impl From<Vec<u8>> for HpkePrivateKey

source§

impl From<Vec<u8>> for rustls::msgs::handshake::DistinguishedName

source§

impl From<Vec<u8>> for rustls::msgs::handshake::DistinguishedName

source§

impl From<Vec<u8>> for PresharedKeyBinder

source§

impl From<Vec<u8>> for ProtocolName

source§

impl From<Vec<u8>> for ResponderId

source§

impl From<Vec<u8>> for Sct

source§

impl From<Vec<u32>> for rand::seq::index::IndexVec

source§

impl From<Vec<u32>> for rand::seq::index::IndexVec

source§

impl From<Vec<usize>> for rand::seq::index::IndexVec

source§

impl From<Vec<usize>> for rand::seq::index::IndexVec

source§

impl From<Vec<CertificateDer<'static>>> for Certificates<'static>

1.43.0 · source§

impl From<Vec<NonZero<u8>>> for CString

source§

impl From<Tag> for rocket::mtls::x509::der_parser::asn1_rs::Header<'_>

source§

impl From<Tag> for OptTaggedParser

source§

impl From<BigUint> for BigInt

source§

impl From<EndOfInput> for webpki::error::Error

source§

impl From<EndOfInput> for ring::error::Unspecified

source§

impl From<EndOfInput> for aws_lc_rs::error::Unspecified

1.20.0 · source§

impl From<CString> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<CStr>

1.7.0 · source§

impl From<CString> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>

1.24.0 · source§

impl From<CString> for Rc<CStr>

1.24.0 · source§

impl From<CString> for Arc<CStr>

1.0.0 · source§

impl From<NulError> for std::io::error::Error

1.62.0 · source§

impl From<Rc<str>> for Rc<[u8]>

1.62.0 · source§

impl From<Arc<str>> for Arc<[u8]>

source§

impl From<Arc<ServerConfig>> for TlsAcceptor

source§

impl From<Arc<ClientConfig>> for Client

source§

impl From<Arc<ClientConfig>> for TlsConnector

source§

impl From<Arc<ServerConfig>> for Server

source§

impl From<TryFromSliceError> for aws_lc_rs::error::Unspecified

source§

impl From<TryFromSliceError> for ring::error::Unspecified

source§

impl From<__m128> for Simd<f32, 4>

source§

impl From<__m128d> for Simd<f64, 2>

source§

impl From<__m128i> for Simd<i8, 16>

source§

impl From<__m128i> for Simd<i16, 8>

source§

impl From<__m128i> for Simd<i32, 4>

source§

impl From<__m128i> for Simd<i64, 2>

source§

impl From<__m128i> for Simd<isize, 2>

source§

impl From<__m128i> for Simd<u8, 16>

source§

impl From<__m128i> for Simd<u16, 8>

source§

impl From<__m128i> for Simd<u32, 4>

source§

impl From<__m128i> for Simd<u64, 2>

source§

impl From<__m128i> for Simd<usize, 2>

source§

impl From<__m256> for Simd<f32, 8>

source§

impl From<__m256d> for Simd<f64, 4>

source§

impl From<__m256i> for Simd<i8, 32>

source§

impl From<__m256i> for Simd<i16, 16>

source§

impl From<__m256i> for Simd<i32, 8>

source§

impl From<__m256i> for Simd<i64, 4>

source§

impl From<__m256i> for Simd<isize, 4>

source§

impl From<__m256i> for Simd<u8, 32>

source§

impl From<__m256i> for Simd<u16, 16>

source§

impl From<__m256i> for Simd<u32, 8>

source§

impl From<__m256i> for Simd<u64, 4>

source§

impl From<__m256i> for Simd<usize, 4>

source§

impl From<__m512> for Simd<f32, 16>

source§

impl From<__m512d> for Simd<f64, 8>

source§

impl From<__m512i> for Simd<i8, 64>

source§

impl From<__m512i> for Simd<i16, 32>

source§

impl From<__m512i> for Simd<i32, 16>

source§

impl From<__m512i> for Simd<i64, 8>

source§

impl From<__m512i> for Simd<isize, 8>

source§

impl From<__m512i> for Simd<u8, 64>

source§

impl From<__m512i> for Simd<u16, 32>

source§

impl From<__m512i> for Simd<u32, 16>

source§

impl From<__m512i> for Simd<u64, 8>

source§

impl From<__m512i> for Simd<usize, 8>

source§

impl From<Simd<f32, 4>> for __m128

source§

impl From<Simd<f32, 8>> for __m256

source§

impl From<Simd<f32, 16>> for __m512

source§

impl From<Simd<f64, 2>> for __m128d

source§

impl From<Simd<f64, 4>> for __m256d

source§

impl From<Simd<f64, 8>> for __m512d

source§

impl From<Simd<i8, 16>> for __m128i

source§

impl From<Simd<i8, 32>> for __m256i

source§

impl From<Simd<i8, 64>> for __m512i

source§

impl From<Simd<i16, 8>> for __m128i

source§

impl From<Simd<i16, 16>> for __m256i

source§

impl From<Simd<i16, 32>> for __m512i

source§

impl From<Simd<i32, 4>> for __m128i

source§

impl From<Simd<i32, 8>> for __m256i

source§

impl From<Simd<i32, 16>> for __m512i

source§

impl From<Simd<i64, 2>> for __m128i

source§

impl From<Simd<i64, 4>> for __m256i

source§

impl From<Simd<i64, 8>> for __m512i

source§

impl From<Simd<isize, 2>> for __m128i

source§

impl From<Simd<isize, 4>> for __m256i

source§

impl From<Simd<isize, 8>> for __m512i

source§

impl From<Simd<u8, 16>> for __m128i

source§

impl From<Simd<u8, 32>> for __m256i

source§

impl From<Simd<u8, 64>> for __m512i

source§

impl From<Simd<u16, 8>> for __m128i

source§

impl From<Simd<u16, 16>> for __m256i

source§

impl From<Simd<u16, 32>> for __m512i

source§

impl From<Simd<u32, 4>> for __m128i

source§

impl From<Simd<u32, 8>> for __m256i

source§

impl From<Simd<u32, 16>> for __m512i

source§

impl From<Simd<u64, 2>> for __m128i

source§

impl From<Simd<u64, 4>> for __m256i

source§

impl From<Simd<u64, 8>> for __m512i

source§

impl From<Simd<usize, 2>> for __m128i

source§

impl From<Simd<usize, 4>> for __m256i

source§

impl From<Simd<usize, 8>> for __m512i

1.16.0 · source§

impl From<Ipv4Addr> for core::net::ip_addr::IpAddr

1.1.0 · source§

impl From<Ipv4Addr> for u32

source§

impl From<Ipv4Addr> for rustls_pki_types::server_name::Ipv4Addr

source§

impl From<Ipv4Addr> for IpV4Address

1.16.0 · source§

impl From<Ipv6Addr> for core::net::ip_addr::IpAddr

1.26.0 · source§

impl From<Ipv6Addr> for u128

source§

impl From<Ipv6Addr> for rustls_pki_types::server_name::Ipv6Addr

source§

impl From<Ipv6Addr> for IpV6Address

source§

impl From<SocketAddrV4> for Endpoint

1.16.0 · source§

impl From<SocketAddrV4> for SocketAddr

source§

impl From<SocketAddrV4> for SocketAddressV4

source§

impl From<SocketAddrV4> for SockAddr

source§

impl From<SocketAddrV6> for Endpoint

1.16.0 · source§

impl From<SocketAddrV6> for SocketAddr

source§

impl From<SocketAddrV6> for SocketAddressV6

source§

impl From<SocketAddrV6> for SockAddr

source§

impl From<TryFromIntError> for rocket::serde::msgpack::Error

source§

impl From<TryFromIntError> for KeyRejected

source§

impl From<TryFromIntError> for aws_lc_rs::error::Unspecified

source§

impl From<TryFromIntError> for s2n_codec::unaligned::TryFromIntError

source§

impl From<TryFromIntError> for ValidationError

1.41.0 · source§

impl From<NonZero<i8>> for NonZero<i16>

1.41.0 · source§

impl From<NonZero<i8>> for NonZero<i32>

1.41.0 · source§

impl From<NonZero<i8>> for NonZero<i64>

1.41.0 · source§

impl From<NonZero<i8>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<i8>> for NonZero<isize>

1.41.0 · source§

impl From<NonZero<i16>> for NonZero<i32>

1.41.0 · source§

impl From<NonZero<i16>> for NonZero<i64>

1.41.0 · source§

impl From<NonZero<i16>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<i16>> for NonZero<isize>

1.41.0 · source§

impl From<NonZero<i32>> for NonZero<i64>

1.41.0 · source§

impl From<NonZero<i32>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<i64>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<i16>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<i32>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<i64>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<isize>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<u16>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<u32>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<u64>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<u128>

1.41.0 · source§

impl From<NonZero<u8>> for NonZero<usize>

1.41.0 · source§

impl From<NonZero<u16>> for NonZero<i32>

1.41.0 · source§

impl From<NonZero<u16>> for NonZero<i64>

1.41.0 · source§

impl From<NonZero<u16>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<u16>> for NonZero<u32>

1.41.0 · source§

impl From<NonZero<u16>> for NonZero<u64>

1.41.0 · source§

impl From<NonZero<u16>> for NonZero<u128>

1.41.0 · source§

impl From<NonZero<u16>> for NonZero<usize>

1.41.0 · source§

impl From<NonZero<u32>> for NonZero<i64>

1.41.0 · source§

impl From<NonZero<u32>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<u32>> for NonZero<u64>

1.41.0 · source§

impl From<NonZero<u32>> for NonZero<u128>

source§

impl From<NonZero<u32>> for getrandom::error::Error

source§

impl From<NonZero<u32>> for getrandom::error::Error

source§

impl From<NonZero<u32>> for rand_core::error::Error

source§

impl From<NonZero<u32>> for rand_core::error::Error

1.41.0 · source§

impl From<NonZero<u64>> for NonZero<i128>

1.41.0 · source§

impl From<NonZero<u64>> for NonZero<u128>

source§

impl From<Alignment> for usize

source§

impl From<Alignment> for NonZero<usize>

source§

impl From<StreamResult> for Result<MZStatus, MZError>

1.20.0 · source§

impl From<OsString> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<OsStr>

1.24.0 · source§

impl From<OsString> for Rc<OsStr>

1.24.0 · source§

impl From<OsString> for Arc<OsStr>

1.0.0 · source§

impl From<OsString> for PathBuf

1.63.0 · source§

impl From<File> for OwnedFd

1.20.0 · source§

impl From<File> for Stdio

source§

impl From<File> for tokio::fs::file::File

source§

impl From<OpenOptions> for OpenOptions

source§

impl From<Error> for rocket::listener::Error

source§

impl From<Error> for rocket::tls::Error

Available on crate feature tls only.
source§

impl From<Error> for SerializeError

source§

impl From<Error> for PEMError

source§

impl From<Error> for Format

source§

impl From<Error> for AnyDelimiterCodecError

source§

impl From<Error> for LinesCodecError

source§

impl From<Error> for rocket::Error

source§

impl From<Error> for getrandom::error::Error

1.74.0 · source§

impl From<Stderr> for Stdio

1.74.0 · source§

impl From<Stdout> for Stdio

1.63.0 · source§

impl From<TcpListener> for OwnedFd

source§

impl From<TcpListener> for Socket

1.63.0 · source§

impl From<TcpStream> for OwnedFd

source§

impl From<TcpStream> for Socket

1.63.0 · source§

impl From<UdpSocket> for OwnedFd

source§

impl From<UdpSocket> for Socket

1.63.0 · source§

impl From<OwnedFd> for std::fs::File

1.63.0 · source§

impl From<OwnedFd> for TcpListener

1.63.0 · source§

impl From<OwnedFd> for TcpStream

1.63.0 · source§

impl From<OwnedFd> for UdpSocket

source§

impl From<OwnedFd> for PidFd

1.63.0 · source§

impl From<OwnedFd> for UnixDatagram

1.63.0 · source§

impl From<OwnedFd> for UnixListener

1.63.0 · source§

impl From<OwnedFd> for UnixStream

1.74.0 · source§

impl From<OwnedFd> for ChildStderr

Create a ChildStderr from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.74.0 · source§

impl From<OwnedFd> for ChildStdin

Create a ChildStdin from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.74.0 · source§

impl From<OwnedFd> for ChildStdout

Create a ChildStdout from the provided OwnedFd.

The provided file descriptor must point to a pipe with the CLOEXEC flag set.

1.63.0 · source§

impl From<OwnedFd> for Stdio

source§

impl From<OwnedFd> for Socket

source§

impl From<PidFd> for OwnedFd

1.63.0 · source§

impl From<UnixDatagram> for OwnedFd

source§

impl From<UnixDatagram> for Socket

1.63.0 · source§

impl From<UnixListener> for OwnedFd

source§

impl From<UnixListener> for Socket

1.63.0 · source§

impl From<UnixStream> for OwnedFd

source§

impl From<UnixStream> for Socket

source§

impl From<PathBuf> for Endpoint

1.20.0 · source§

impl From<PathBuf> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<Path>

1.24.0 · source§

impl From<PathBuf> for Rc<Path>

1.24.0 · source§

impl From<PathBuf> for Arc<Path>

1.14.0 · source§

impl From<PathBuf> for OsString

1.63.0 · source§

impl From<ChildStderr> for OwnedFd

1.20.0 · source§

impl From<ChildStderr> for Stdio

source§

impl From<ChildStderr> for Receiver

§Notes

The underlying pipe is not set to non-blocking.

1.63.0 · source§

impl From<ChildStdin> for OwnedFd

1.20.0 · source§

impl From<ChildStdin> for Stdio

source§

impl From<ChildStdin> for Sender

§Notes

The underlying pipe is not set to non-blocking.

1.63.0 · source§

impl From<ChildStdout> for OwnedFd

1.20.0 · source§

impl From<ChildStdout> for Stdio

source§

impl From<ChildStdout> for Receiver

§Notes

The underlying pipe is not set to non-blocking.

source§

impl From<Command> for Command

source§

impl From<ExitStatusError> for ExitStatus

1.24.0 · source§

impl From<RecvError> for RecvTimeoutError

1.24.0 · source§

impl From<RecvError> for TryRecvError

source§

impl From<Instant> for time::instant::Instant

source§

impl From<Instant> for tokio::time::instant::Instant

source§

impl From<Instant> for Uptime

source§

impl From<SystemTime> for HttpDate

source§

impl From<SystemTime> for OffsetDateTime

source§

impl From<SystemTimeError> for rustls::error::Error

source§

impl From<SystemTimeError> for rustls::error::Error

source§

impl From<Aes128Enc> for Aes128

source§

impl From<Aes128Enc> for Aes128Dec

source§

impl From<Aes192Enc> for Aes192

source§

impl From<Aes192Enc> for Aes192Dec

source§

impl From<Aes256Enc> for Aes256

source§

impl From<Aes256Enc> for Aes256Dec

source§

impl From<KeyRejected> for aws_lc_rs::error::Unspecified

source§

impl From<Unspecified> for ()

source§

impl From<Unspecified> for KeyRejected

source§

impl From<Okm<'_, &'static Algorithm>> for aws_lc_rs::aead::quic::HeaderProtectionKey

source§

impl From<Okm<'_, &'static Algorithm>> for aws_lc_rs::aead::unbound_key::UnboundKey

source§

impl From<Okm<'_, &'static Algorithm>> for UnboundCipherKey

source§

impl From<Okm<'_, Algorithm>> for aws_lc_rs::hkdf::Prk

source§

impl From<Okm<'_, Algorithm>> for aws_lc_rs::hkdf::Salt

source§

impl From<Okm<'_, Algorithm>> for aws_lc_rs::hmac::Key

source§

impl From<Bytes> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>

source§

impl From<BytesMut> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>

source§

impl From<BytesMut> for bytes::bytes::Bytes

source§

impl From<OverflowError> for StreamCipherError

source§

impl From<Error> for rocket::listener::Error

source§

impl From<Error> for rocket::tls::Error

Available on crate feature tls only.
source§

impl From<Error> for rocket::Error

source§

impl From<Profile> for String

source§

impl From<Tag> for figment::value::value::Value

source§

impl From<Error> for std::io::error::Error

source§

impl From<Error> for rand_core::error::Error

source§

impl From<Reason> for u32

source§

impl From<Reason> for h2::error::Error

source§

impl From<StreamId> for u32

source§

impl From<MaxSizeReached> for http::error::Error

source§

impl From<HeaderName> for HeaderValue

source§

impl From<InvalidHeaderName> for http::error::Error

source§

impl From<InvalidHeaderValue> for http::error::Error

source§

impl From<InvalidMethod> for http::error::Error

source§

impl From<InvalidStatusCode> for http::error::Error

source§

impl From<StatusCode> for u16

source§

impl From<Authority> for http::uri::Uri

Convert an Authority into a Uri.

source§

impl From<PathAndQuery> for http::uri::Uri

Convert a PathAndQuery into a Uri.

source§

impl From<InvalidUri> for http::error::Error

source§

impl From<InvalidUriParts> for http::error::Error

source§

impl From<Uri> for Builder

source§

impl From<Uri> for Parts

Convert a Uri into Parts

source§

impl From<HttpDate> for SystemTime

source§

impl From<Error> for std::io::error::Error

source§

impl From<ReasonPhrase> for bytes::bytes::Bytes

source§

impl From<Token> for usize

source§

impl From<KeyRejected> for ring::error::Unspecified

source§

impl From<Okm<'_, &'static Algorithm>> for ring::aead::quic::HeaderProtectionKey

source§

impl From<Okm<'_, &'static Algorithm>> for ring::aead::unbound_key::UnboundKey

source§

impl From<Okm<'_, Algorithm>> for ring::hkdf::Prk

source§

impl From<Okm<'_, Algorithm>> for ring::hkdf::Salt

source§

impl From<Okm<'_, Algorithm>> for ring::hmac::Key

source§

impl From<Okm<'_, PayloadU8Len>> for PayloadU8

source§

impl From<MarkerReadError> for rocket::serde::msgpack::Error

source§

impl From<ByteBuf> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::vec::Vec<u8>

source§

impl From<Mode> for u32

source§

impl From<Errno> for std::io::error::Error

source§

impl From<Ipv4Addr> for core::net::ip_addr::Ipv4Addr

source§

impl From<Ipv6Addr> for core::net::ip_addr::Ipv6Addr

source§

impl From<OwnedCertRevocationList> for CertRevocationList<'_>

source§

impl From<ClientConnection> for rustls::conn::connection::Connection

source§

impl From<ClientConfig> for Client

source§

impl From<ClientConnection> for rustls::conn::Connection

source§

impl From<ConnectionCommon<ServerConnectionData>> for AcceptedAlert

source§

impl From<InsufficientSizeError> for EncodeError

source§

impl From<InsufficientSizeError> for EncryptError

source§

impl From<UnsupportedOperationError> for rustls::error::Error

source§

impl From<OtherError> for rustls::error::Error

source§

impl From<u24> for usize

source§

impl From<Message> for rustls::msgs::message::PlainMessage

source§

impl From<ClientConnection> for rustls::quic::connection::Connection

source§

impl From<ServerConnection> for rustls::quic::connection::Connection

source§

impl From<ClientConnection> for rustls::quic::Connection

source§

impl From<ServerConnection> for rustls::quic::Connection

source§

impl From<GetRandomFailed> for rustls::error::Error

source§

impl From<ServerConnection> for rustls::conn::connection::Connection

source§

impl From<ServerConfig> for Server

source§

impl From<ServerConnection> for rustls::conn::Connection

source§

impl From<i24> for i8

source§

impl From<i24> for i16

source§

impl From<i24> for i32

source§

impl From<i24> for u8

source§

impl From<i24> for u16

source§

impl From<i48> for i8

source§

impl From<i48> for i16

source§

impl From<i48> for i32

source§

impl From<i48> for i64

source§

impl From<i48> for u8

source§

impl From<i48> for u16

source§

impl From<i48> for u32

source§

impl From<u24> for u8

source§

impl From<u24> for u16

source§

impl From<u24> for u32

source§

impl From<u24> for u64

source§

impl From<u48> for u8

source§

impl From<u48> for u16

source§

impl From<u48> for u32

source§

impl From<u48> for u64

source§

impl From<I16> for i16

source§

impl From<I32> for i32

source§

impl From<I64> for i64

source§

impl From<I128> for i128

source§

impl From<U16> for u16

source§

impl From<U32> for u32

source§

impl From<U64> for u64

source§

impl From<U128> for u128

source§

impl From<Error> for u64

source§

impl From<Error> for VarInt

source§

impl From<InitialId> for PeerId

source§

impl From<InitialId> for UnboundedId

source§

impl From<LocalId> for UnboundedId

source§

impl From<LocalId> for InitialSourceConnectionId

source§

impl From<PeerId> for UnboundedId

source§

impl From<Error> for ProcessingError

source§

impl From<Error> for s2n_quic_core::transport::error::Error

Implements conversion from TLS errors See Error::crypto_error for more details

source§

impl From<PlatformRxError> for std::io::error::Error

source§

impl From<PlatformTxError> for std::io::error::Error

source§

impl From<IpV4Address> for IpAddress

source§

impl From<IpV4Address> for core::net::ip_addr::Ipv4Addr

source§

impl From<IpV4Address> for [u8; 4]

source§

impl From<SocketAddressV4> for SocketAddr

source§

impl From<SocketAddressV4> for SocketAddress

source§

impl From<SocketAddressV4> for SocketAddrV4

source§

impl From<SocketAddressV4> for s2n_quic_core::path::LocalAddress

source§

impl From<SocketAddressV4> for s2n_quic_core::path::RemoteAddress

source§

impl From<IpV6Address> for IpAddress

source§

impl From<IpV6Address> for core::net::ip_addr::Ipv6Addr

source§

impl From<IpV6Address> for [u8; 16]

source§

impl From<IpV6Address> for [u16; 8]

source§

impl From<SocketAddressV6> for SocketAddr

source§

impl From<SocketAddressV6> for SocketAddress

source§

impl From<SocketAddressV6> for SocketAddrV6

source§

impl From<SocketAddressV6> for s2n_quic_core::path::LocalAddress

source§

impl From<SocketAddressV6> for s2n_quic_core::path::RemoteAddress

source§

impl From<BaseMtu> for u16

source§

impl From<BaseMtu> for usize

source§

impl From<InitialMtu> for u16

source§

impl From<InitialMtu> for usize

source§

impl From<MaxMtu> for u16

source§

impl From<MaxMtu> for usize

source§

impl From<LocalAddress> for s2n_quic_core::xdp::path::LocalAddress

source§

impl From<RemoteAddress> for s2n_quic_core::xdp::path::RemoteAddress

source§

impl From<StreamId> for u64

source§

impl From<StreamId> for VarInt

source§

impl From<Response> for ()

source§

impl From<Response> for ()

source§

impl From<Response> for ()

source§

impl From<Error> for s2n_quic_core::connection::error::Error

source§

impl From<Error> for ProcessingError

source§

impl From<Error> for StreamError

source§

impl From<InitialMaxStreamsBidi> for LocalBidirectional

source§

impl From<MaxAckDelay> for Duration

source§

impl From<MaxIdleTimeout> for Duration

source§

impl From<VarInt> for u64

source§

impl From<VarInt> for s2n_quic_core::application::error::Error

source§

impl From<VarIntError> for s2n_quic_core::transport::error::Error

Implements conversion from crypto errors See Error::crypto_error for more details

source§

impl From<VarIntError> for ValidationError

source§

impl From<LocalAddress> for s2n_quic_core::path::LocalAddress

source§

impl From<RemoteAddress> for s2n_quic_core::path::RemoteAddress

source§

impl From<MaxSegments> for usize

source§

impl From<MaxSegments> for Gso

source§

impl From<Stream> for ReceiveStream

source§

impl From<Stream> for s2n_quic_transport::stream::api::SendStream

source§

impl From<BidirectionalStream> for s2n_quic::stream::Stream

source§

impl From<BidirectionalStream> for LocalStream

source§

impl From<BidirectionalStream> for PeerStream

source§

impl From<ReceiveStream> for s2n_quic::stream::Stream

source§

impl From<ReceiveStream> for PeerStream

§

impl From<ReceiveStream> for RecvStream

source§

impl From<SendStream> for s2n_quic::stream::Stream

source§

impl From<SendStream> for LocalStream

source§

impl From<Error> for std::io::error::Error

source§

impl From<Map<String, Value>> for rocket::serde::json::Value

source§

impl From<Number> for rocket::serde::json::Value

source§

impl From<Hash128> for u128

source§

impl From<Socket> for TcpListener

source§

impl From<Socket> for TcpStream

source§

impl From<Socket> for UdpSocket

source§

impl From<Socket> for OwnedFd

source§

impl From<Socket> for UnixDatagram

source§

impl From<Socket> for UnixListener

source§

impl From<Socket> for UnixStream

source§

impl From<Domain> for i32

source§

impl From<Protocol> for i32

source§

impl From<Type> for i32

source§

impl From<Choice> for bool

source§

impl From<PathPersistError> for std::io::error::Error

source§

impl From<PathPersistError> for TempPath

source§

impl From<ComponentRange> for time::error::Error

source§

impl From<ComponentRange> for TryFromParsed

source§

impl From<ConversionRange> for time::error::Error

source§

impl From<DifferentVariant> for time::error::Error

source§

impl From<InvalidVariant> for time::error::Error

source§

impl From<Instant> for std::time::Instant

source§

impl From<OffsetDateTime> for ASN1Time

source§

impl From<OffsetDateTime> for SystemTime

source§

impl From<Elapsed> for std::io::error::Error

source§

impl From<JoinError> for std::io::error::Error

source§

impl From<SignalKind> for i32

source§

impl From<Elapsed> for std::io::error::Error

source§

impl From<Instant> for std::time::Instant

source§

impl From<Map<String, Value>> for toml::value::Value

source§

impl From<Date> for toml_edit::value::Value

source§

impl From<Date> for Datetime

source§

impl From<Datetime> for toml::value::Value

source§

impl From<Datetime> for toml_edit::value::Value

source§

impl From<Time> for toml_edit::value::Value

source§

impl From<Time> for Datetime

source§

impl From<Array> for toml_edit::value::Value

source§

impl From<Error> for TomlError

source§

impl From<DocumentMut> for Deserializer

source§

impl From<TomlError> for toml_edit::ser::Error

source§

impl From<TomlError> for toml_edit::de::Error

source§

impl From<InlineTable> for toml_edit::value::Value

source§

impl From<InternalString> for toml_edit::value::Value

source§

impl From<InternalString> for toml_edit::key::Key

source§

impl From<InternalString> for RawString

source§

impl From<Table> for DocumentMut

source§

impl From<ParseLevelFilterError> for tracing_subscriber::filter::directive::ParseError

source§

impl From<Current> for Option<Id>

source§

impl From<Span> for Option<Id>

source§

impl From<Error> for std::io::error::Error

source§

impl From<Error> for rand_core::error::Error

source§

impl From<ChaCha8Core> for rand_chacha::chacha::ChaCha8Rng

source§

impl From<ChaCha8Core> for rand_chacha::chacha::ChaCha8Rng

source§

impl From<ChaCha12Core> for rand_chacha::chacha::ChaCha12Rng

source§

impl From<ChaCha12Core> for rand_chacha::chacha::ChaCha12Rng

source§

impl From<ChaCha20Core> for rand_chacha::chacha::ChaCha20Rng

source§

impl From<ChaCha20Core> for rand_chacha::chacha::ChaCha20Rng

source§

impl From<Error> for std::io::error::Error

source§

impl From<Error> for std::io::error::Error

source§

impl From<vec128_storage> for [u32; 4]

source§

impl From<vec128_storage> for [u64; 2]

source§

impl From<vec128_storage> for [u128; 1]

source§

impl From<vec256_storage> for [u32; 8]

source§

impl From<vec256_storage> for [u64; 4]

source§

impl From<vec256_storage> for [u128; 2]

source§

impl From<vec512_storage> for [u32; 16]

source§

impl From<vec512_storage> for [u64; 8]

source§

impl From<vec512_storage> for [u128; 4]

source§

impl From<AeadCtx> for aws_lc_rs::aead::unbound_key::UnboundKey

source§

impl From<AeadDirection> for u32

source§

impl From<AlertLevel> for u8

source§

impl From<BigEndian<u32>> for u32

source§

impl From<BigEndian<u32>> for u32

source§

impl From<BigEndian<u32>> for Nonce

source§

impl From<BigEndian<u32>> for [u8; 4]

source§

impl From<BigEndian<u64>> for u64

source§

impl From<ByteStr> for bytes::bytes::Bytes

source§

impl From<CertificateStatusType> for u8

source§

impl From<ClientCertificateType> for u8

§

impl From<Code> for u64

§

impl From<Code> for Error

source§

impl From<Component> for Component

source§

impl From<Compression> for u8

source§

impl From<Custom> for bytes::bytes::Bytes

source§

impl From<DataFlags> for u8

source§

impl From<ECCurveType> for u8

source§

impl From<ECPointFormat> for u8

source§

impl From<EchVersion> for u16

source§

impl From<Error> for InvalidFormatDescription

§

impl From<Error> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<dyn Error + Send>

source§

impl From<Error> for h2::error::Error

§

impl From<Error> for Error

§

impl From<Error> for Error

source§

impl From<ErrorKind> for InvalidUri

source§

impl From<ErrorKind> for InvalidUriParts

source§

impl From<ExtensionType> for u16

§

impl From<FrameStreamError> for Error

source§

impl From<GetRandomFailed> for rustls::error::Error

§

impl From<HeaderError> for Error

§

impl From<HeaderField> for String

source§

impl From<HeaderKeyPair> for HandshakeHeaderKey

source§

impl From<HeaderKeyPair> for InitialHeaderKey

source§

impl From<HeaderKeyPair> for OneRttHeaderKey

source§

impl From<HeadersFlag> for u8

source§

impl From<HeartbeatMessageType> for u8

source§

impl From<HeartbeatMode> for u8

source§

impl From<HourBase> for bool

source§

impl From<HpkeAead> for u16

source§

impl From<HpkeKdf> for u16

source§

impl From<HpkeKem> for u16

source§

impl From<InternalConnectionId> for u64

§

impl From<InvalidStreamId> for Error

source§

impl From<Item<'_>> for OwnedFormatItem

source§

impl From<KeyUpdateRequest> for u8

source§

impl From<Kind> for tokio::time::error::Error

source§

impl From<LengthMeasurement> for usize

source§

impl From<LittleEndian<u32>> for u32

source§

impl From<LittleEndian<u64>> for u64

source§

impl From<Message<'_>> for rustls::msgs::message::PlainMessage

source§

impl From<MonthCaseSensitive> for bool

source§

impl From<MonthRepr> for MonthRepr

source§

impl From<NamedCurve> for u16

source§

impl From<PSKKeyExchangeMode> for u8

source§

impl From<Padding> for Padding

source§

impl From<ParserNumber> for serde_json::number::Number

source§

impl From<PeerIdRegistrationError> for s2n_quic_core::transport::error::Error

source§

impl From<PeriodCase> for bool

source§

impl From<PeriodCaseSensitive> for bool

source§

impl From<ProfileTag> for Option<Profile>

source§

impl From<PushPromiseFlag> for u8

§

impl From<ReadError> for Arc<dyn Error>

source§

impl From<Result> for Result<(), Unspecified>

source§

impl From<RootArcs> for u8

source§

impl From<SendError> for h2::error::Error

§

impl From<SendStreamError> for Arc<dyn Error>

source§

impl From<ServerNameType> for u8

§

impl From<SessionId> for StreamId

source§

impl From<SettingsFlags> for u8

source§

impl From<SignBehavior> for bool

source§

impl From<SpawnError> for std::io::error::Error

source§

impl From<State> for usize

source§

impl From<StreamId> for u32

source§

impl From<SubsecondDigits> for SubsecondDigits

source§

impl From<Tag> for u8

source§

impl From<Tag> for u8

source§

impl From<Tag> for u8

source§

impl From<Tag> for u8

source§

impl From<Tag> for usize

source§

impl From<Tag> for usize

source§

impl From<Tag> for usize

source§

impl From<Tag> for usize

source§

impl From<UnixTimestampPrecision> for UnixTimestampPrecision

source§

impl From<UserError> for h2::error::Error

§

impl From<VarInt> for u64

§

impl From<VarInt> for StreamId

source§

impl From<WeekNumberRepr> for WeekNumberRepr

source§

impl From<WeekdayCaseSensitive> for bool

source§

impl From<WeekdayOneIndexed> for bool

source§

impl From<WeekdayRepr> for WeekdayRepr

source§

impl From<Window> for isize

source§

impl From<Writer> for rocket::mtls::x509::der_parser::asn1_rs::nom::lib::std::boxed::Box<[u8]>

source§

impl From<YearBase> for bool

source§

impl From<YearRepr> for YearRepr

1.17.0 · source§

impl From<[u8; 4]> for core::net::ip_addr::IpAddr

1.9.0 · source§

impl From<[u8; 4]> for core::net::ip_addr::Ipv4Addr

source§

impl From<[u8; 4]> for IpV4Address

source§

impl From<[u8; 12]> for Iv

1.17.0 · source§

impl From<[u8; 16]> for core::net::ip_addr::IpAddr

1.9.0 · source§

impl From<[u8; 16]> for core::net::ip_addr::Ipv6Addr

source§

impl From<[u8; 16]> for ring::aead::Tag

source§

impl From<[u8; 16]> for IpV6Address

source§

impl From<[u8; 16]> for Token

source§

impl From<[u8; 20]> for InitialId

source§

impl From<[u8; 20]> for LocalId

source§

impl From<[u8; 20]> for PeerId

source§

impl From<[u8; 20]> for UnboundedId

source§

impl From<[u8; 32]> for AeadKey

source§

impl From<[u8; 32]> for Random

1.17.0 · source§

impl From<[u16; 8]> for core::net::ip_addr::IpAddr

1.16.0 · source§

impl From<[u16; 8]> for core::net::ip_addr::Ipv6Addr

source§

impl From<[u16; 8]> for rustls_pki_types::server_name::Ipv6Addr

source§

impl From<[u16; 8]> for IpV6Address

source§

impl From<[u32; 4]> for vec128_storage

source§

impl From<[u64; 4]> for vec256_storage

source§

impl From<u24> for usize

source§

impl<'a> From<&'a IpAddr> for IpAddrRef<'a>

§

impl<'a> From<&'a str> for &'a RawStr

source§

impl<'a> From<&'a str> for &'a UncasedStr

source§

impl<'a> From<&'a str> for &'a BStr

source§

impl<'a> From<&'a str> for &'a winnow::stream::Bytes

§

impl<'a> From<&'a str> for ProxyProto<'a>

1.0.0 · source§

impl<'a> From<&'a str> for Cow<'a, str>

source§

impl<'a> From<&'a str> for InlinableString

source§

impl<'a> From<&'a str> for toml::value::Value

source§

impl<'a> From<&'a str> for Cookie<'a>

source§

impl<'a> From<&'a str> for BmpString<'a>

source§

impl<'a> From<&'a str> for GeneralString<'a>

source§

impl<'a> From<&'a str> for GraphicString<'a>

source§

impl<'a> From<&'a str> for Ia5String<'a>

source§

impl<'a> From<&'a str> for NumericString<'a>

source§

impl<'a> From<&'a str> for ObjectDescriptor<'a>

source§

impl<'a> From<&'a str> for PrintableString<'a>

source§

impl<'a> From<&'a str> for TeletexString<'a>

source§

impl<'a> From<&'a str> for UniversalString<'a>

source§

impl<'a> From<&'a str> for Utf8String<'a>

source§

impl<'a> From<&'a str> for VideotexString<'a>

source§

impl<'a> From<&'a str> for VisibleString<'a>

source§

impl<'a> From<&'a str> for BytesMut

source§

impl<'a> From<&'a str> for h2::ext::Protocol

source§

impl<'a> From<&'a str> for hyper::ext::Protocol

source§

impl<'a> From<&'a str> for InlineString

Create a InlineString from the given &str.

§Panics

If the given string’s size is greater than INLINE_STRING_CAPACITY, this method panics.

source§

impl<'a> From<&'a str> for Text<'a>

§

impl<'a> From<&'a RawStr> for Cow<'a, RawStr>

1.28.0 · source§

impl<'a> From<&'a String> for Cow<'a, str>

1.28.0 · source§

impl<'a> From<&'a CString> for Cow<'a, CStr>

1.28.0 · source§

impl<'a> From<&'a CStr> for Cow<'a, CStr>

1.28.0 · source§

impl<'a> From<&'a OsStr> for Cow<'a, OsStr>

1.28.0 · source§

impl<'a> From<&'a OsString> for Cow<'a, OsStr>

1.6.0 · source§

impl<'a> From<&'a Path> for Cow<'a, Path>

1.28.0 · source§

impl<'a> From<&'a PathBuf> for Cow<'a, Path>

source§

impl<'a> From<&'a HeaderName> for HeaderName

source§

impl<'a> From<&'a HeaderValue> for HeaderValue

source§

impl<'a> From<&'a Method> for Method

source§

impl<'a> From<&'a StatusCode> for StatusCode

source§

impl<'a> From<&'a IpV4Address> for IpAddressRef<'a>

source§

impl<'a> From<&'a IpV6Address> for IpAddressRef<'a>

source§

impl<'a> From<&'a Current> for Option<&'a Id>

source§

impl<'a> From<&'a Current> for Option<&'static Metadata<'static>>

source§

impl<'a> From<&'a Current> for Option<Id>

source§

impl<'a> From<&'a Id> for Option<Id>

source§

impl<'a> From<&'a EnteredSpan> for Option<&'a Id>

source§

impl<'a> From<&'a EnteredSpan> for Option<Id>

source§

impl<'a> From<&'a Span> for Option<&'a Id>

source§

impl<'a> From<&'a Span> for Option<Id>

source§

impl<'a> From<&'a BStr> for &'a [u8]

source§

impl<'a> From<&'a Bytes> for &'a [u8]

source§

impl<'a> From<&'a vec128_storage> for &'a [u32; 4]

source§

impl<'a> From<&'a [BorrowedFormatItem<'_>]> for BorrowedFormatItem<'a>

source§

impl<'a> From<&'a [u8]> for &'a BStr

source§

impl<'a> From<&'a [u8]> for &'a winnow::stream::Bytes

source§

impl<'a> From<&'a [u8]> for OutboundChunks<'a>

source§

impl<'a> From<&'a [u8]> for Chunk<'a>

source§

impl<'a> From<&'a [u8]> for CertificateDer<'a>

source§

impl<'a> From<&'a [u8]> for OctetString<'a>

source§

impl<'a> From<&'a [u8]> for ECPoint<'a>

source§

impl<'a> From<&'a [u8]> for untrusted::input::Input<'a>

source§

impl<'a> From<&'a [u8]> for untrusted::Input<'a>

source§

impl<'a> From<&'a [u8]> for Ciphertext<'a>

source§

impl<'a> From<&'a [u8]> for BytesMut

source§

impl<'a> From<&'a [u8]> for rmp::decode::bytes::Bytes<'a>

source§

impl<'a> From<&'a [u8]> for CertificateRevocationListDer<'a>

source§

impl<'a> From<&'a [u8]> for CertificateSigningRequestDer<'a>

source§

impl<'a> From<&'a [u8]> for Der<'a>

source§

impl<'a> From<&'a [u8]> for EchConfigListBytes<'a>

source§

impl<'a> From<&'a [u8]> for PrivatePkcs1KeyDer<'a>

source§

impl<'a> From<&'a [u8]> for PrivatePkcs8KeyDer<'a>

source§

impl<'a> From<&'a [u8]> for PrivateSec1KeyDer<'a>

source§

impl<'a> From<&'a [u8]> for SubjectPublicKeyInfoDer<'a>

source§

impl<'a> From<&'a [u8]> for DecoderBuffer<'a>

source§

impl<'a> From<&'a mut [u8]> for &'a mut UninitSlice

source§

impl<'a> From<&'a mut [u8]> for DecoderBuffer<'a>