pub trait From<T>: Sized {
// Required method
fn from(value: T) -> Self;
}
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
impliesInto
<U> for T
From
is reflexive, which means thatFrom<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 aFrom
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 usingu16: TryFrom<i32>
. AndString: From<&str>
exists, where you can get something equivalent to the original value viaDeref
. ButFrom
cannot be used to convert fromu32
tou16
, 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, sinceas
casting back can recover the original value, but that conversion is not available viaFrom
because-1
and255
are different conceptual values (despite being identical bit patterns technically). Butf32: From<i16>
is available because1_i16
and1.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, butString: From<u32>
is not available, since1
(a number) and"1"
(text) are too different. (Converting values to text is instead covered by theDisplay
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 likeu32::from_ne_bytes
,u32::from_le_bytes
, andu32::from_be_bytes
, none of which areFrom
implementations. Whereas there’s only one reasonable way to wrap anIpv6Addr
into anIpAddr
, thusIpAddr: 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§
Object Safety§
Implementors§
impl From<&&str> for WasmValue
impl From<&'static str> for DispatchError
impl From<&'static str> for RuntimeString
impl From<&'static str> for gclient::ext::sp_runtime::codec::Error
impl From<&'static str> for U256
impl From<&'static str> for U512
impl From<&'static str> for Body
impl From<&'static str> for Bytes
impl From<&'static str> for U128
impl From<&'static Tls12CipherSuite> for SupportedCipherSuite
impl From<&'static Tls12CipherSuite> for SupportedCipherSuite
impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
impl From<&'static Tls13CipherSuite> for SupportedCipherSuite
impl From<&'static [u8]> for Body
impl From<&'static [u8]> for Bytes
impl From<&i8> for WasmValue
impl From<&i32> for WasmValue
impl From<&str> for serde_json::value::Value
impl From<&str> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<&str> for Rc<str>
impl From<&str> for String
impl From<&str> for gclient::ext::sp_core::sp_std::prelude::Box<str>
impl From<&str> for Arc<str>
impl From<&str> for Primitive
impl From<&str> for Value
impl From<&str> for Vec<u8>
impl From<&str> for WasmFieldName
impl From<&str> for WasmValue
impl From<&u32> for WasmValue
impl From<&String> for String
impl From<&CStr> for CString
impl From<&CStr> for Rc<CStr>
impl From<&CStr> for gclient::ext::sp_core::sp_std::prelude::Box<CStr>
impl From<&CStr> for Arc<CStr>
impl From<&CStr> for Box<CStr>
impl From<&StreamResult> for Result<MZStatus, MZError>
impl From<&OsStr> for Rc<OsStr>
impl From<&OsStr> for gclient::ext::sp_core::sp_std::prelude::Box<OsStr>
impl From<&OsStr> for Arc<OsStr>
impl From<&Path> for Rc<Path>
impl From<&Path> for gclient::ext::sp_core::sp_std::prelude::Box<Path>
impl From<&Path> for Arc<Path>
impl From<&Attributes<'_>> for WasmEntryAttributes
impl From<&ChaCha8Rng> for rand_chacha::chacha::ChaCha8Rng
impl From<&ChaCha12Rng> for rand_chacha::chacha::ChaCha12Rng
impl From<&ChaCha20Rng> for rand_chacha::chacha::ChaCha20Rng
impl From<&Event<'_>> for WasmEntryAttributes
impl From<&ExpandedSecretKey> for VerifyingKey
impl From<&FieldSet> for WasmFields
impl From<&InnerNonce> for gear_core::reservation::ReservationNonce
impl From<&Level> for WasmLevel
impl From<&Metadata<'_>> for WasmMetadata
impl From<&NibbleVec> for (usize, SmallVec<[u8; 40]>)
impl From<&ObjectIdentifier> for ObjectIdentifier
impl From<&Signature> for Signature
impl From<&Signature> for [u8; 64]
impl From<&SigningKey> for VerifyingKey
impl From<&StreamResult> for Result<MZStatus, MZError>
impl From<&WasmMetadata> for &'static Metadata<'static>
impl From<&[u8; 32]> for SigningKey
impl From<&[u8; 64]> for Hash
impl From<&[u8; 64]> for Signature
impl From<&[u8]> for Bytes
impl From<&[u8]> for Tag
impl From<&mut str> for String
impl From<(&mut MessageContext, &mut PayloadSliceLock)> for UnlockPayloadBound
impl From<(i64, i64)> for GasLeft
impl From<(u32, u32)> for MemoryInterval
impl From<(u64, u64)> for GasLeft
impl From<(u64, u64)> for Weight
impl From<(Api, PairSigner<GearConfig, Pair>)> for Signer
impl From<(Api, Pair)> for GearApi
impl From<(Vec<(usize, Error)>, Module)> for Error
impl From<(Vec<(usize, Error)>, Module)> for Error
impl From<([u8; 4], Vec<u8>)> for Justifications
impl From<CodecError> for CodeError
impl From<DataSectionError> for CodeError
impl From<ExportError> for CodeError
impl From<ImportError> for CodeError
impl From<MemoryError> for CodeError
impl From<SectionError> for CodeError
impl From<StackEndError> for CodeError
impl From<TableSectionError> for CodeError
impl From<ChargeError> for AllocError
impl From<ExecutionError> for ExtError
impl From<MemoryError> for ExtError
impl From<MessageError> for ExtError
impl From<ReservationError> for ExtError
impl From<ErrorReplyReason> for ReplyCode
impl From<SimpleExecutionError> for ErrorReplyReason
impl From<SimpleExecutionError> for SignalCode
impl From<SimpleProgramCreationError> for ErrorReplyReason
impl From<SuccessReplyReason> for ReplyCode
impl From<Error> for gclient::Error
impl From<TxError> for gsdk::result::Error
impl From<DispatchStatus> for DispatchStatus
impl From<ReplyCode> for ReplyCode
impl From<PrepaidCall<u128>> for Value
impl From<RuntimeCall> for Value
impl From<ArithmeticError> for &'static str
impl From<ArithmeticError> for DispatchError
impl From<DispatchError> for &'static str
impl From<DispatchError> for Result<(), DispatchError>
impl From<RuntimeString> for String
impl From<StateVersion> for u8
impl From<TokenError> for &'static str
impl From<TokenError> for DispatchError
impl From<TransactionalError> for &'static str
impl From<TransactionalError> for DispatchError
impl From<HttpError> for u8
impl From<HttpError> for u32
impl From<HttpRequestStatus> for u32
impl From<StorageKind> for u8
impl From<StorageKind> for u32
impl From<InvalidTransaction> for &'static str
impl From<InvalidTransaction> for TransactionValidityError
impl From<InvalidTransaction> for Result<ValidTransaction, TransactionValidityError>
impl From<TransactionValidityError> for &'static str
impl From<UnknownTransaction> for &'static str
impl From<UnknownTransaction> for TransactionValidityError
impl From<UnknownTransaction> for Result<ValidTransaction, TransactionValidityError>
impl From<Cow<'_, str>> for gclient::ext::sp_core::sp_std::prelude::Box<str>
impl From<Cow<'_, CStr>> for gclient::ext::sp_core::sp_std::prelude::Box<CStr>
impl From<Cow<'_, OsStr>> for gclient::ext::sp_core::sp_std::prelude::Box<OsStr>
impl From<Cow<'_, Path>> for gclient::ext::sp_core::sp_std::prelude::Box<Path>
impl From<Cow<'static, str>> for Body
impl From<Cow<'static, [u8]>> for Body
impl From<TryReserveErrorKind> for TryReserveError
impl From<PublicError> for gsdk::result::Error
impl From<Ss58AddressFormatRegistry> for Ss58AddressFormat
impl From<LogLevel> for log::Level
impl From<LogLevel> for u8
impl From<LogLevelFilter> for log::LevelFilter
impl From<LogLevelFilter> for u8
impl From<Result<u32, u32>> for ErrorWithHandle
impl From<Result<u32, u32>> for ErrorWithSignalCode
impl From<Result<u64, u32>> for ErrorWithGas
impl From<Result<(), u32>> for ErrorBytes
impl From<Result<[u8; 4], u32>> for ErrorWithReplyCode
impl From<Infallible> for TryFromIntError
impl From<Infallible> for TryFromSliceError
impl From<Infallible> for http::error::Error
impl From<Infallible> for Error
impl From<Infallible> for ExtrinsicParamsError
impl From<AsciiChar> for char
impl From<AsciiChar> for u8
impl From<AsciiChar> for u16
impl From<AsciiChar> for u32
impl From<AsciiChar> for u64
impl From<AsciiChar> for u128
impl From<IpAddr> for webpki::subject_name::ip_address::IpAddr
impl From<IpAddr> for IpAddr
impl From<IpAddr> for IpAddr
impl From<SocketAddr> for socket2::sockaddr::SockAddr
impl From<SocketAddr> for SockAddr
impl From<Option<ExternRef>> for Val
impl From<Option<Func>> for Val
impl From<Option<Level>> for LevelFilter
impl From<Option<VMExternRef>> for TableElement
impl From<VarError> for FromEnvError
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.
impl From<FromHexError> for gsdk::result::Error
impl From<FromHexError> for gclient::Error
impl From<Level> for LogLevel
impl From<LevelFilter> for LogLevelFilter
impl From<ErrorKind> for num_format::error::Error
impl From<Locale> for CustomFormat
impl From<Locale> for CustomFormatBuilder
impl From<ParseError> for gclient::Error
impl From<bool> for serde_json::value::Value
impl From<bool> for f32
impl From<bool> for f64
impl From<bool> for i8
impl From<bool> for i16
impl From<bool> for i32
impl From<bool> for i64
impl From<bool> for i128
impl From<bool> for isize
impl From<bool> for u8
impl From<bool> for u16
impl From<bool> for u32
impl From<bool> for u64
impl From<bool> for u128
impl From<bool> for usize
impl From<bool> for AtomicBool
impl From<bool> for BigInt
impl From<bool> for num_bigint::biguint::BigUint
impl From<bool> for Primitive
impl From<bool> for UntypedValue
impl From<bool> for Value
impl From<bool> for VarUint1
impl From<bool> for VarUint1
impl From<bool> for WasmValue
impl From<char> for u32
impl From<char> for u64
impl From<char> for u128
impl From<char> for String
impl From<char> for Literal
impl From<char> for Primitive
impl From<char> for Value
impl From<f16> for f64
impl From<f16> for f128
impl From<f32> for serde_json::value::Value
impl From<f32> for f64
impl From<f32> for f128
impl From<f32> for F32
impl From<f32> for UntypedValue
impl From<f32> for Val
impl From<f64> for serde_json::value::Value
impl From<f64> for f128
impl From<f64> for F64
impl From<f64> for UntypedValue
impl From<f64> for Val
impl From<i8> for serde_json::value::Value
impl From<i8> for f32
impl From<i8> for f64
impl From<i8> for i16
impl From<i8> for i32
impl From<i8> for i64
impl From<i8> for i128
impl From<i8> for isize
impl From<i8> for U256
impl From<i8> for U512
impl From<i8> for AtomicI8
impl From<i8> for BigInt
impl From<i8> for Number
impl From<i8> for Primitive
impl From<i8> for U128
impl From<i8> for UntypedValue
impl From<i8> for Value
impl From<i8> for Value
impl From<i8> for VarInt7
impl From<i8> for VarInt7
impl From<i8> for WasmValue
impl From<i16> for serde_json::value::Value
impl From<i16> for f32
impl From<i16> for f64
impl From<i16> for i32
impl From<i16> for i64
impl From<i16> for i128
impl From<i16> for isize
impl From<i16> for U256
impl From<i16> for U512
impl From<i16> for AtomicI16
impl From<i16> for HeaderValue
impl From<i16> for BigInt
impl From<i16> for Number
impl From<i16> for Primitive
impl From<i16> for U128
impl From<i16> for UntypedValue
impl From<i16> for Value
impl From<i16> for Value
impl From<i32> for serde_json::value::Value
impl From<i32> for f64
impl From<i32> for i64
impl From<i32> for i128
impl From<i32> for U256
impl From<i32> for U512
impl From<i32> for AtomicI32
impl From<i32> for HeaderValue
impl From<i32> for BigInt
impl From<i32> for Number
impl From<i32> for socket2::Domain
impl From<i32> for socket2::Protocol
impl From<i32> for socket2::Type
impl From<i32> for Domain
impl From<i32> for ErrorCode
impl From<i32> for ErrorCode
impl From<i32> for Primitive
impl From<i32> for Protocol
impl From<i32> for Type
impl From<i32> for U128
impl From<i32> for UntypedValue
impl From<i32> for Val
impl From<i32> for Value
impl From<i32> for Value
impl From<i32> for VarInt32
impl From<i32> for VarInt32
impl From<i32> for WasmValue
impl From<i64> for serde_json::value::Value
impl From<i64> for i128
impl From<i64> for FixedI64
impl From<i64> for U256
impl From<i64> for U512
impl From<i64> for AtomicI64
impl From<i64> for HeaderValue
impl From<i64> for BigInt
impl From<i64> for Number
impl From<i64> for Primitive
impl From<i64> for U128
impl From<i64> for UntypedValue
impl From<i64> for Val
impl From<i64> for Value
impl From<i64> for Value
impl From<i64> for VarInt64
impl From<i64> for VarInt64
impl From<i64> for WasmValue
impl From<i128> for FixedI128
impl From<i128> for U256
impl From<i128> for U512
impl From<i128> for BigInt
impl From<i128> for Primitive
impl From<i128> for U128
impl From<i128> for Value
impl From<isize> for serde_json::value::Value
impl From<isize> for U256
impl From<isize> for U512
impl From<isize> for AtomicIsize
impl From<isize> for HeaderValue
impl From<isize> for BigInt
impl From<isize> for Number
impl From<isize> for Primitive
impl From<isize> for U128
impl From<isize> for Value
impl From<!> for Infallible
impl From<!> for TryFromIntError
impl From<*mut VMCallerCheckedFuncRef> for TableElement
impl From<u8> for serde_json::value::Value
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.
impl From<u8> for f32
impl From<u8> for f64
impl From<u8> for i16
impl From<u8> for i32
impl From<u8> for i64
impl From<u8> for i128
impl From<u8> for isize
impl From<u8> for u16
impl From<u8> for u32
impl From<u8> for u64
impl From<u8> for u128
impl From<u8> for usize
impl From<u8> for gclient::ext::sp_runtime::biguint::BigUint
impl From<u8> for Ss58AddressFormat
impl From<u8> for U256
impl From<u8> for U512
impl From<u8> for AtomicU8
impl From<u8> for ExitCode
impl From<u8> for curve25519_dalek::scalar::Scalar
impl From<u8> for curve25519_dalek::scalar::Scalar
impl From<u8> for BigInt
impl From<u8> for num_bigint::biguint::BigUint
impl From<u8> for Number
impl From<u8> for Choice
impl From<u8> for AlertDescription
impl From<u8> for AlertDescription
impl From<u8> for AlertLevel
impl From<u8> for AlertLevel
impl From<u8> for CertificateStatusType
impl From<u8> for ClientCertificateType
impl From<u8> for Compression
impl From<u8> for Compression
impl From<u8> for ContentType
impl From<u8> for ContentType
impl From<u8> for ECCurveType
impl From<u8> for ECPointFormat
impl From<u8> for HandshakeType
impl From<u8> for HandshakeType
impl From<u8> for HashAlgorithm
impl From<u8> for HashAlgorithm
impl From<u8> for HeartbeatMessageType
impl From<u8> for HeartbeatMode
impl From<u8> for KeyUpdateRequest
impl From<u8> for Level
impl From<u8> for Literal
impl From<u8> for NumberOrHex
impl From<u8> for NumberOrHex
impl From<u8> for PSKKeyExchangeMode
impl From<u8> for PatternID
impl From<u8> for PatternID
impl From<u8> for Primitive
impl From<u8> for Scalar
impl From<u8> for ServerNameType
impl From<u8> for SignatureAlgorithm
impl From<u8> for SignatureAlgorithm
impl From<u8> for SmallIndex
impl From<u8> for StateID
impl From<u8> for StateID
impl From<u8> for U128
impl From<u8> for Uint8
impl From<u8> for Uint8
impl From<u8> for UntypedValue
impl From<u8> for Value
impl From<u8> for Value
impl From<u8> for VarUint7
impl From<u8> for VarUint7
impl From<u8> for WasmValue
impl From<u16> for serde_json::value::Value
impl From<u16> for f32
impl From<u16> for f64
impl From<u16> for i32
impl From<u16> for i64
impl From<u16> for i128
impl From<u16> for u32
impl From<u16> for u64
impl From<u16> for u128
impl From<u16> for usize
impl From<u16> for gear_core::pages::Page<gear_core::::pages::GearPage::{constant#0}>
impl From<u16> for gear_core::pages::Page<gear_core::::pages::WasmPage::{constant#0}>
impl From<u16> for gear_core::pages::PagesAmount<gear_core::::pages::GearPagesAmount::{constant#0}>
impl From<u16> for gear_core::pages::PagesAmount<gear_core::::pages::WasmPagesAmount::{constant#0}>
impl From<u16> for gclient::ext::sp_runtime::biguint::BigUint
impl From<u16> for Ss58AddressFormat
impl From<u16> for U256
impl From<u16> for U512
impl From<u16> for AtomicU16
impl From<u16> for curve25519_dalek::scalar::Scalar
impl From<u16> for curve25519_dalek::scalar::Scalar
impl From<u16> for HeaderValue
impl From<u16> for BigInt
impl From<u16> for num_bigint::biguint::BigUint
impl From<u16> for Number
impl From<u16> for CipherSuite
impl From<u16> for CipherSuite
impl From<u16> for EchVersion
impl From<u16> for ExtensionType
impl From<u16> for HpkeAead
impl From<u16> for HpkeKdf
impl From<u16> for HpkeKem
impl From<u16> for NamedCurve
impl From<u16> for NamedGroup
impl From<u16> for NamedGroup
impl From<u16> for NumberOrHex
impl From<u16> for NumberOrHex
impl From<u16> for Primitive
impl From<u16> for ProtocolVersion
impl From<u16> for ProtocolVersion
impl From<u16> for Scalar
impl From<u16> for SignatureScheme
impl From<u16> for SignatureScheme
impl From<u16> for U128
impl From<u16> for UntypedValue
impl From<u16> for Value
impl From<u16> for Value
impl From<u32> for LogLevel
impl From<u32> for serde_json::value::Value
impl From<u32> for f64
impl From<u32> for i64
impl From<u32> for i128
impl From<u32> for u64
impl From<u32> for u128
impl From<u32> for BlocksAmount
impl From<u32> for BytesAmount
impl From<u32> for CallsAmount
impl From<u32> for gear_core::percent::Percent
impl From<u32> for gclient::ext::sp_runtime::biguint::BigUint
impl From<u32> for KeyTypeId
impl From<u32> for U256
impl From<u32> for U512
impl From<u32> for AtomicU32
impl From<u32> for core::net::ip_addr::Ipv4Addr
impl From<u32> for curve25519_dalek::scalar::Scalar
impl From<u32> for curve25519_dalek::scalar::Scalar
impl From<u32> for Reason
impl From<u32> for HeaderValue
impl From<u32> for BigInt
impl From<u32> for num_bigint::biguint::BigUint
impl From<u32> for Number
impl From<u32> for F32
impl From<u32> for MessageHandle
impl From<u32> for Mode
impl From<u32> for Mode
impl From<u32> for NumberOrHex
impl From<u32> for NumberOrHex
impl From<u32> for Primitive
impl From<u32> for Scalar
impl From<u32> for U128
impl From<u32> for Uint32
impl From<u32> for Uint32
impl From<u32> for UntypedValue
impl From<u32> for Value
impl From<u32> for Value
impl From<u32> for VarUint32
impl From<u32> for VarUint32
impl From<u32> for WasmValue
impl From<u64> for serde_json::value::Value
impl From<u64> for i128
impl From<u64> for u128
impl From<u64> for gclient::ext::sp_runtime::biguint::BigUint
impl From<u64> for FixedU64
impl From<u64> for UintAuthorityId
impl From<u64> for U256
impl From<u64> for U512
impl From<u64> for AtomicU64
impl From<u64> for curve25519_dalek::scalar::Scalar
impl From<u64> for curve25519_dalek::scalar::Scalar
impl From<u64> for HeaderValue
impl From<u64> for BigInt
impl From<u64> for num_bigint::biguint::BigUint
impl From<u64> for Number
impl From<u64> for ActorId
impl From<u64> for CodeId
impl From<u64> for F64
impl From<u64> for MessageId
impl From<u64> for NumberOrHex
impl From<u64> for NumberOrHex
impl From<u64> for Primitive
impl From<u64> for ReservationId
impl From<u64> for Scalar
impl From<u64> for U128
impl From<u64> for Uint64
impl From<u64> for Uint64
impl From<u64> for UntypedValue
impl From<u64> for Value
impl From<u64> for Value
impl From<u64> for VarUint64
impl From<u64> for VarUint64
impl From<u64> for WasmValue
impl From<u64> for Weight
impl From<u128> for gclient::ext::sp_runtime::biguint::BigUint
impl From<u128> for gclient::ext::sp_runtime::FixedU128
impl From<u128> for U256
impl From<u128> for U512
impl From<u128> for core::net::ip_addr::Ipv6Addr
impl From<u128> for curve25519_dalek::scalar::Scalar
impl From<u128> for curve25519_dalek::scalar::Scalar
impl From<u128> for BigInt
impl From<u128> for num_bigint::biguint::BigUint
impl From<u128> for NumberOrHex
impl From<u128> for NumberOrHex
impl From<u128> for Primitive
impl From<u128> for Scalar
impl From<u128> for U128
impl From<u128> for Val
impl From<u128> for Value
impl From<()> for ExtError
impl From<()> for ReplyCode
impl From<()> for SignalCode
impl From<()> for serde_json::value::Value
impl From<usize> for serde_json::value::Value
impl From<usize> for U256
impl From<usize> for U512
impl From<usize> for AtomicUsize
impl From<usize> for HeaderValue
impl From<usize> for BigInt
impl From<usize> for num_bigint::biguint::BigUint
impl From<usize> for Number
impl From<usize> for Primitive
impl From<usize> for U128
impl From<usize> for Value
impl From<usize> for VarUint32
impl From<usize> for VarUint32
impl From<RuntimeBufferSizeError> for &str
impl From<Code> for InstrumentedCode
impl From<CodeAndId> for InstrumentedCodeAndId
impl From<BlocksAmount> for u32
impl From<BytesAmount> for u32
impl From<CallsAmount> for u32
impl From<InstantiationWeights> for InstantiationCosts
impl From<MemoryWeights> for LazyPagesCosts
impl From<RentWeights> for RentCosts
impl From<SyscallWeights> for SyscallCosts
impl From<MemoryInterval> for (u32, u32)
impl From<Dispatch> for (DispatchKind, Message)
impl From<Dispatch> for StoredDelayedDispatch
impl From<Dispatch> for StoredDispatch
impl From<Message> for StoredMessage
impl From<ReplyDetails> for MessageDetails
impl From<SignalDetails> for MessageDetails
impl From<IncomingDispatch> for (DispatchKind, IncomingMessage, Option<ContextStore>)
impl From<StoredDelayedDispatch> for (DispatchKind, StoredMessage)
impl From<StoredDelayedDispatch> for StoredDispatch
impl From<StoredDispatch> for (DispatchKind, StoredMessage, Option<ContextStore>)
impl From<PayloadSizeError> for &str
impl From<UserMessage> for StoredMessage
impl From<UserStoredMessage> for StoredMessage
impl From<Percent> for Percent
impl From<GasReservationSlot> for GasReservationState
impl From<Api> for GearApi
impl From<Signer> for GearApi
impl From<ReplyDetails> for ReplyDetails
impl From<UserMessage> for UserMessage
impl From<UserStoredMessage> for UserStoredMessage
impl From<ActorId> for ActorId
impl From<CodeId> for CodeId
impl From<MessageId> for MessageId
impl From<ReservationId> for ReservationId
impl From<GearApi> for Signer
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::ecdsa::Pair
impl From<Public> for gclient::ext::sp_runtime::app_crypto::ecdsa::Public
impl From<Signature> for gclient::ext::sp_runtime::app_crypto::ecdsa::Signature
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::ecdsa::AppPair
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::ecdsa::Public
impl From<Public> for MultiSigner
impl From<Public> for gclient::ext::sp_runtime::app_crypto::ecdsa::AppPublic
impl From<Signature> for MultiSignature
impl From<Signature> for gclient::ext::sp_runtime::app_crypto::ecdsa::AppSignature
impl From<Signature> for [u8; 65]
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::ed25519::Pair
impl From<Public> for gclient::ext::sp_runtime::app_crypto::ed25519::Public
impl From<Signature> for gclient::ext::sp_runtime::app_crypto::ed25519::Signature
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::ed25519::AppPair
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::ed25519::Public
impl From<Public> for MultiSigner
impl From<Public> for gclient::ext::sp_runtime::app_crypto::ed25519::AppPublic
impl From<Public> for gclient::ext::sp_runtime::AccountId32
impl From<Public> for H256
impl From<Public> for [u8; 32]
impl From<Signature> for MultiSignature
impl From<Signature> for gclient::ext::sp_runtime::app_crypto::ed25519::AppSignature
impl From<Signature> for AnySignature
impl From<Signature> for H512
impl From<Signature> for [u8; 64]
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::sr25519::Pair
impl From<Public> for gclient::ext::sp_runtime::app_crypto::sr25519::Public
impl From<Signature> for gclient::ext::sp_runtime::app_crypto::sr25519::Signature
impl From<Pair> for PairSigner<GearConfig, Pair>
impl From<Pair> for gclient::ext::sp_runtime::app_crypto::sr25519::AppPair
impl From<Pair> for Keypair
impl From<Public> for MultiSigner
impl From<Public> for gclient::ext::sp_runtime::app_crypto::sr25519::AppPublic
impl From<Public> for gclient::ext::sp_runtime::AccountId32
impl From<Public> for H256
impl From<Public> for [u8; 32]
impl From<Signature> for MultiSignature
impl From<Signature> for gclient::ext::sp_runtime::app_crypto::sr25519::AppSignature
impl From<Signature> for AnySignature
impl From<Signature> for H512
impl From<Signature> for [u8; 64]
impl From<Vec<&str>> for WasmFields
impl From<Vec<(&&str, Option<WasmValue>)>> for WasmValuesSet
impl From<Vec<(&&WasmFieldName, Option<WasmValue>)>> for WasmValuesSet
impl From<Vec<(WasmFieldName, Option<WasmValue>)>> for WasmValuesSet
impl From<Vec<u8>> for TrackedStorageKey
impl From<Vec<u8>> for gclient::ext::sp_core::Bytes
impl From<Vec<u8>> for BString
impl From<Vec<u8>> for Body
impl From<Vec<u8>> for Bytes
impl From<Vec<u8>> for Bytes
impl From<Vec<u8>> for Bytes
impl From<Vec<u8>> for Bytes
impl From<Vec<u8>> for Der<'static>
impl From<Vec<u8>> for DistinguishedName
impl From<Vec<u8>> for DistinguishedName
impl From<Vec<u8>> for ProtocolName
impl From<Vec<u8>> for ResponderId
impl From<Vec<u8>> for Sct
impl From<Vec<u8>> for WasmFieldName
impl From<Vec<u32>> for rand::seq::index::IndexVec
impl From<Vec<u32>> for rand::seq::index::IndexVec
impl From<Vec<usize>> for rand::seq::index::IndexVec
impl From<Vec<usize>> for rand::seq::index::IndexVec
impl From<Vec<NonZero<u8>>> for CString
impl From<Vec<BacktraceFrame>> for Backtrace
impl From<Vec<WasmFieldName>> for WasmFields
impl From<Compact<u8>> for u8
impl From<Compact<u16>> for u16
impl From<Compact<u32>> for u32
impl From<Compact<u64>> for u64
impl From<Compact<u128>> for u128
impl From<Compact<()>> for ()
impl From<Compact<HoldConsideration>> for HoldConsideration
impl From<Compact<Page>> for gclient::metadata::runtime_types::gear_core::pages::Page
impl From<Compact<PagesAmount>> for gclient::metadata::runtime_types::gear_core::pages::PagesAmount
impl From<Compact<Percent>> for gclient::metadata::runtime_types::gear_core::percent::Percent
impl From<Compact<MemoryInfix>> for MemoryInfix
impl From<Compact<ReservationNonce>> for gclient::metadata::runtime_types::gear_core::reservation::ReservationNonce
impl From<Compact<ExtraFlags>> for ExtraFlags
impl From<Compact<Vote>> for Vote
impl From<Compact<MemberRecord>> for MemberRecord
impl From<Compact<FixedU128>> for gclient::metadata::runtime_types::sp_arithmetic::fixed_point::FixedU128
impl From<Compact<PerU16>> for gclient::metadata::runtime_types::sp_arithmetic::per_things::PerU16
impl From<Compact<Perbill>> for gclient::metadata::runtime_types::sp_arithmetic::per_things::Perbill
impl From<Compact<Percent>> for gclient::metadata::runtime_types::sp_arithmetic::per_things::Percent
impl From<Compact<Permill>> for gclient::metadata::runtime_types::sp_arithmetic::per_things::Permill
impl From<Compact<Perquintill>> for gclient::metadata::runtime_types::sp_arithmetic::per_things::Perquintill
impl From<Compact<Slot>> for Slot
impl From<Compact<FixedI64>> for FixedI64
impl From<Compact<FixedI128>> for FixedI128
impl From<Compact<FixedU64>> for FixedU64
impl From<Compact<FixedU128>> for gclient::ext::sp_runtime::FixedU128
impl From<Compact<PerU16>> for gclient::ext::sp_runtime::PerU16
impl From<Compact<Perbill>> for gclient::ext::sp_runtime::Perbill
impl From<Compact<Percent>> for gclient::ext::sp_runtime::Percent
impl From<Compact<Permill>> for gclient::ext::sp_runtime::Permill
impl From<Compact<Perquintill>> for gclient::ext::sp_runtime::Perquintill
impl From<Compact<OldWeight>> for OldWeight
impl From<Error> for gsdk::result::Error
impl From<Error> for gclient::Error
impl From<Error> for DecodeError
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<HttpRequestId> for u32
impl From<Duration> for Duration
impl From<Instant> for Uptime
impl From<Instant> for Instant
impl From<SystemTime> for DateTime<Local>
impl From<SystemTime> for DateTime<Utc>
impl From<SystemTime> for HttpDate
impl From<SystemTime> for Timestamp
impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
impl From<MetaType> for PalletCallMetadata
impl From<MetaType> for PalletErrorMetadata
impl From<MetaType> for PalletEventMetadata
impl From<Registry> for PortableRegistry
impl From<AccountId32> for [u8; 32]
impl From<KeyTypeId> for u32
impl From<Rational128> for RationalInfinite
impl From<H256> for H160
impl From<H256> for ActorId
impl From<H256> for CodeId
impl From<H256> for MessageId
impl From<H256> for ReservationId
impl From<H256> for [u8; 32]
impl From<UintAuthorityId> for u64
impl From<BadOrigin> for &'static str
impl From<BadOrigin> for DispatchError
impl From<LookupError> for &'static str
impl From<LookupError> for DispatchError
impl From<LookupError> for TransactionValidityError
impl From<ValidTransactionBuilder> for Result<ValidTransaction, TransactionValidityError>
impl From<ValidTransactionBuilder> for ValidTransaction
impl From<BTreeMap<Vec<u8>, Vec<u8>>> for BasicExternalities
impl From<TryReserveError> for std::io::error::Error
impl From<CString> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<CString> for Rc<CStr>
impl From<CString> for gclient::ext::sp_core::sp_std::prelude::Box<CStr>
impl From<CString> for Arc<CStr>
impl From<NulError> for std::io::error::Error
impl From<NulError> for Error
impl From<Rc<str>> for Rc<[u8]>
impl From<Utf8Error> for DecodeError
impl From<Utf8Error> for Error
impl From<Utf8Error> for Error
impl From<String> for serde_json::value::Value
impl From<String> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<String> for Rc<str>
impl From<String> for gclient::ext::sp_core::sp_std::prelude::Box<str>
impl From<String> for Arc<str>
impl From<String> for OsString
impl From<String> for PathBuf
impl From<String> for BString
impl From<String> for Body
impl From<String> for Bytes
impl From<String> for Color
impl From<String> for ColoredString
impl From<String> for Error
impl From<String> for ParseErrorKind
impl From<String> for Primitive
impl From<String> for Value
impl From<Ss58AddressFormat> for u16
impl From<Ss58AddressFormat> for String
impl From<VrfTranscript> for VrfSignData
impl From<H160> for H256
impl From<H160> for ActorId
impl From<H160> for [u8; 20]
impl From<H512> for [u8; 64]
impl From<OpaqueMetadata> for gclient::ext::sp_core::Bytes
impl From<U256> for U512
impl From<U256> for NumberOrHex
impl From<U256> for NumberOrHex
impl From<U256> for [u8; 32]
impl From<U512> for [u8; 64]
impl From<LayoutError> for TryReserveErrorKind
impl From<LayoutError> for CollectionAllocErr
impl From<NonZero<i8>> for NonZero<i16>
impl From<NonZero<i8>> for NonZero<i32>
impl From<NonZero<i8>> for NonZero<i64>
impl From<NonZero<i8>> for NonZero<i128>
impl From<NonZero<i8>> for NonZero<isize>
impl From<NonZero<i16>> for NonZero<i32>
impl From<NonZero<i16>> for NonZero<i64>
impl From<NonZero<i16>> for NonZero<i128>
impl From<NonZero<i16>> for NonZero<isize>
impl From<NonZero<i32>> for NonZero<i64>
impl From<NonZero<i32>> for NonZero<i128>
impl From<NonZero<i64>> for NonZero<i128>
impl From<NonZero<u8>> for NonZero<i16>
impl From<NonZero<u8>> for NonZero<i32>
impl From<NonZero<u8>> for NonZero<i64>
impl From<NonZero<u8>> for NonZero<i128>
impl From<NonZero<u8>> for NonZero<isize>
impl From<NonZero<u8>> for NonZero<u16>
impl From<NonZero<u8>> for NonZero<u32>
impl From<NonZero<u8>> for NonZero<u64>
impl From<NonZero<u8>> for NonZero<u128>
impl From<NonZero<u8>> for NonZero<usize>
impl From<NonZero<u8>> for NonZeroU256
impl From<NonZero<u16>> for NonZero<i32>
impl From<NonZero<u16>> for NonZero<i64>
impl From<NonZero<u16>> for NonZero<i128>
impl From<NonZero<u16>> for NonZero<u32>
impl From<NonZero<u16>> for NonZero<u64>
impl From<NonZero<u16>> for NonZero<u128>
impl From<NonZero<u16>> for NonZero<usize>
impl From<NonZero<u16>> for NonZeroU256
impl From<NonZero<u32>> for NonZero<i64>
impl From<NonZero<u32>> for NonZero<i128>
impl From<NonZero<u32>> for NonZero<u64>
impl From<NonZero<u32>> for NonZero<u128>
impl From<NonZero<u32>> for getrandom::error::Error
impl From<NonZero<u32>> for getrandom::error::Error
impl From<NonZero<u32>> for rand_core::error::Error
impl From<NonZero<u32>> for rand_core::error::Error
impl From<NonZero<u32>> for NonZeroU256
impl From<NonZero<u64>> for NonZero<i128>
impl From<NonZero<u64>> for NonZero<u128>
impl From<NonZero<u64>> for NonZeroU256
impl From<NonZero<u128>> for NonZeroU256
impl From<Range<usize>> for Span
impl From<Range<usize>> for Span
impl From<Box<str>> for String
impl From<Box<CStr>> for CString
impl From<Box<OsStr>> for OsString
impl From<Box<Path>> for PathBuf
impl From<Box<RawValue>> for gclient::ext::sp_core::sp_std::prelude::Box<str>
impl From<Box<BStr>> for gclient::ext::sp_core::sp_std::prelude::Box<[u8]>
impl From<Box<[u8]>> for gclient::ext::sp_core::sp_std::prelude::Box<BStr>
impl From<Box<[u8]>> for Bytes
impl From<Box<dyn DbExternalities>> for OffchainDbExt
impl From<Box<dyn Externalities>> for OffchainWorkerExt
impl From<Box<dyn TransactionPool + Send>> for TransactionPoolExt
impl From<Box<dyn Error + Send + Sync>> for tracing_subscriber::filter::directive::ParseError
impl From<Box<dyn Error + Send + Sync>> for Error
impl From<Box<dyn ReadRuntimeVersion>> for ReadRuntimeVersionExt
impl From<Box<dyn CustomError>> for ErrorKind
impl From<Box<dyn CustomError>> for ErrorKind
impl From<Box<dyn CustomError>> for ExtrinsicParamsError
impl From<Box<dyn Stream<Item = Result<Bytes, Box<dyn Error + Send + Sync>>> + Send>> for Body
§Optional
This function requires enabling the stream
feature in your
Cargo.toml
.
impl From<RecvError> for RecvTimeoutError
impl From<RecvError> for TryRecvError
impl From<Arc<str>> for Arc<[u8]>
impl From<Arc<ClientConfig>> for TlsConnector
impl From<Arc<ClientConfig>> for TlsConnector
impl From<Arc<ServerConfig>> for TlsAcceptor
impl From<Arc<ServerConfig>> for TlsAcceptor
impl From<Arc<dyn Keystore>> for KeystoreExt
impl From<KeyRejected> for ring::error::Unspecified
impl From<Okm<'_, &'static Algorithm>> for ring::aead::quic::HeaderProtectionKey
impl From<Okm<'_, &'static Algorithm>> for ring::aead::UnboundKey
impl From<Okm<'_, Algorithm>> for ring::hkdf::Prk
impl From<Okm<'_, Algorithm>> for ring::hkdf::Salt
impl From<Okm<'_, Algorithm>> for ring::hmac::Key
impl From<Okm<'_, PayloadU8Len>> for PayloadU8
impl From<EndOfInput> for Unspecified
impl From<EndOfInput> for ring::error::Unspecified
impl From<EndOfInput> for Error
impl From<DnsNameRef<'_>> for DnsName
Requires the alloc
feature.
impl From<TryFromSliceError> for ring::error::Unspecified
impl From<TryFromSliceError> for Unspecified
impl From<__m128> for Simd<f32, 4>
impl From<__m128d> for Simd<f64, 2>
impl From<__m128i> for Simd<i8, 16>
impl From<__m128i> for Simd<i16, 8>
impl From<__m128i> for Simd<i32, 4>
impl From<__m128i> for Simd<i64, 2>
impl From<__m128i> for Simd<isize, 2>
impl From<__m128i> for Simd<u8, 16>
impl From<__m128i> for Simd<u16, 8>
impl From<__m128i> for Simd<u32, 4>
impl From<__m128i> for Simd<u64, 2>
impl From<__m128i> for Simd<usize, 2>
impl From<__m256> for Simd<f32, 8>
impl From<__m256d> for Simd<f64, 4>
impl From<__m256i> for Simd<i8, 32>
impl From<__m256i> for Simd<i16, 16>
impl From<__m256i> for Simd<i32, 8>
impl From<__m256i> for Simd<i64, 4>
impl From<__m256i> for Simd<isize, 4>
impl From<__m256i> for Simd<u8, 32>
impl From<__m256i> for Simd<u16, 16>
impl From<__m256i> for Simd<u32, 8>
impl From<__m256i> for Simd<u64, 4>
impl From<__m256i> for Simd<usize, 4>
impl From<__m512> for Simd<f32, 16>
impl From<__m512d> for Simd<f64, 8>
impl From<__m512i> for Simd<i8, 64>
impl From<__m512i> for Simd<i16, 32>
impl From<__m512i> for Simd<i32, 16>
impl From<__m512i> for Simd<i64, 8>
impl From<__m512i> for Simd<isize, 8>
impl From<__m512i> for Simd<u8, 64>
impl From<__m512i> for Simd<u16, 32>
impl From<__m512i> for Simd<u32, 16>
impl From<__m512i> for Simd<u64, 8>
impl From<__m512i> for Simd<usize, 8>
impl From<Simd<f32, 4>> for __m128
impl From<Simd<f32, 8>> for __m256
impl From<Simd<f32, 16>> for __m512
impl From<Simd<f64, 2>> for __m128d
impl From<Simd<f64, 4>> for __m256d
impl From<Simd<f64, 8>> for __m512d
impl From<Simd<i8, 16>> for __m128i
impl From<Simd<i8, 32>> for __m256i
impl From<Simd<i8, 64>> for __m512i
impl From<Simd<i16, 8>> for __m128i
impl From<Simd<i16, 16>> for __m256i
impl From<Simd<i16, 32>> for __m512i
impl From<Simd<i32, 4>> for __m128i
impl From<Simd<i32, 8>> for __m256i
impl From<Simd<i32, 16>> for __m512i
impl From<Simd<i64, 2>> for __m128i
impl From<Simd<i64, 4>> for __m256i
impl From<Simd<i64, 8>> for __m512i
impl From<Simd<isize, 2>> for __m128i
impl From<Simd<isize, 4>> for __m256i
impl From<Simd<isize, 8>> for __m512i
impl From<Simd<u8, 16>> for __m128i
impl From<Simd<u8, 32>> for __m256i
impl From<Simd<u8, 64>> for __m512i
impl From<Simd<u16, 8>> for __m128i
impl From<Simd<u16, 16>> for __m256i
impl From<Simd<u16, 32>> for __m512i
impl From<Simd<u32, 4>> for __m128i
impl From<Simd<u32, 8>> for __m256i
impl From<Simd<u32, 16>> for __m512i
impl From<Simd<u64, 2>> for __m128i
impl From<Simd<u64, 4>> for __m256i
impl From<Simd<u64, 8>> for __m512i
impl From<Simd<usize, 2>> for __m128i
impl From<Simd<usize, 4>> for __m256i
impl From<Simd<usize, 8>> for __m512i
impl From<Arguments<'_>> for WasmValue
impl From<Ipv4Addr> for core::net::ip_addr::IpAddr
impl From<Ipv4Addr> for u32
impl From<Ipv4Addr> for Ipv4Addr
impl From<Ipv6Addr> for core::net::ip_addr::IpAddr
impl From<Ipv6Addr> for u128
impl From<Ipv6Addr> for Ipv6Addr
impl From<SocketAddrV4> for SocketAddr
impl From<SocketAddrV4> for WSAddress
impl From<SocketAddrV4> for socket2::sockaddr::SockAddr
impl From<SocketAddrV4> for SockAddr
impl From<SocketAddrV6> for SocketAddr
impl From<SocketAddrV6> for socket2::sockaddr::SockAddr
impl From<SocketAddrV6> for SockAddr
impl From<Alignment> for usize
impl From<Alignment> for NonZero<usize>
impl From<StreamResult> for Result<MZStatus, MZError>
impl From<OsString> for Rc<OsStr>
impl From<OsString> for gclient::ext::sp_core::sp_std::prelude::Box<OsStr>
impl From<OsString> for Arc<OsStr>
impl From<OsString> for PathBuf
impl From<File> for OwnedFd
impl From<File> for Stdio
impl From<Error> for gsdk::result::Error
impl From<Error> for gclient::Error
impl From<Error> for gclient::ext::sp_runtime::codec::Error
impl From<Error> for gclient::ext::sp_core::sp_std::prelude::Box<ErrorKind>
impl From<Error> for getrandom::error::Error
impl From<Error> for AnyDelimiterCodecError
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for GetTimezoneError
impl From<Error> for LinesCodecError
impl From<Error> for WsHandshakeError
impl From<Error> for WsHandshakeError
impl From<Stderr> for Stdio
impl From<Stdout> for Stdio
impl From<TcpListener> for OwnedFd
impl From<TcpListener> for socket2::socket::Socket
impl From<TcpListener> for Socket
impl From<TcpStream> for OwnedFd
impl From<TcpStream> for socket2::socket::Socket
impl From<TcpStream> for Socket
impl From<UdpSocket> for OwnedFd
impl From<UdpSocket> for socket2::socket::Socket
impl From<UdpSocket> for Socket
impl From<OwnedFd> for File
impl From<OwnedFd> for TcpListener
impl From<OwnedFd> for TcpStream
impl From<OwnedFd> for UdpSocket
impl From<OwnedFd> for PidFd
impl From<OwnedFd> for UnixDatagram
impl From<OwnedFd> for UnixListener
impl From<OwnedFd> for UnixStream
impl From<OwnedFd> for PipeReader
impl From<OwnedFd> for PipeWriter
impl From<OwnedFd> for ChildStderr
Creates a ChildStderr
from the provided OwnedFd
.
The provided file descriptor must point to a pipe
with the CLOEXEC
flag set.
impl From<OwnedFd> for ChildStdin
Creates a ChildStdin
from the provided OwnedFd
.
The provided file descriptor must point to a pipe
with the CLOEXEC
flag set.
impl From<OwnedFd> for ChildStdout
Creates a ChildStdout
from the provided OwnedFd
.
The provided file descriptor must point to a pipe
with the CLOEXEC
flag set.
impl From<OwnedFd> for Stdio
impl From<OwnedFd> for Socket
impl From<PidFd> for OwnedFd
impl From<UnixDatagram> for OwnedFd
impl From<UnixDatagram> for socket2::socket::Socket
impl From<UnixDatagram> for Socket
impl From<UnixListener> for OwnedFd
impl From<UnixListener> for socket2::socket::Socket
impl From<UnixListener> for Socket
impl From<UnixStream> for OwnedFd
impl From<UnixStream> for socket2::socket::Socket
impl From<UnixStream> for Socket
impl From<PathBuf> for Rc<Path>
impl From<PathBuf> for gclient::ext::sp_core::sp_std::prelude::Box<Path>
impl From<PathBuf> for Arc<Path>
impl From<PathBuf> for OsString
impl From<PipeReader> for OwnedFd
impl From<PipeReader> for Stdio
impl From<PipeWriter> for OwnedFd
impl From<PipeWriter> for Stdio
impl From<ChildStderr> for OwnedFd
impl From<ChildStderr> for Stdio
impl From<ChildStderr> for Receiver
§Notes
The underlying pipe is not set to non-blocking.
impl From<ChildStdin> for OwnedFd
impl From<ChildStdin> for Stdio
impl From<ChildStdin> for Sender
§Notes
The underlying pipe is not set to non-blocking.
impl From<ChildStdout> for OwnedFd
impl From<ChildStdout> for Stdio
impl From<ChildStdout> for Receiver
§Notes
The underlying pipe is not set to non-blocking.
impl From<ExitStatusError> for ExitStatus
impl From<Error> for gsdk::result::Error
impl From<Error> for gclient::Error
impl From<Error> for gclient::ext::sp_core::sp_std::prelude::Box<dyn Error + Send + Sync>
impl From<Error> for gclient::ext::sp_core::sp_std::prelude::Box<dyn Error + Send>
impl From<Error> for gclient::ext::sp_core::sp_std::prelude::Box<dyn Error>
impl From<Error> for CallError
impl From<Error> for Error
impl From<Error> for SubscriptionEmptyError
impl From<Error> for TrapReason
impl From<DateTime<FixedOffset>> for DateTime<Local>
Convert a DateTime<FixedOffset>
instance into a DateTime<Local>
instance.
impl From<DateTime<FixedOffset>> for DateTime<Utc>
Convert a DateTime<FixedOffset>
instance into a DateTime<Utc>
instance.
impl From<DateTime<Local>> for DateTime<FixedOffset>
Convert a DateTime<Local>
instance into a DateTime<FixedOffset>
instance.
impl From<DateTime<Local>> for DateTime<Utc>
Convert a DateTime<Local>
instance into a DateTime<Utc>
instance.
impl From<DateTime<Utc>> for DateTime<FixedOffset>
Convert a DateTime<Utc>
instance into a DateTime<FixedOffset>
instance.
impl From<DateTime<Utc>> for DateTime<Local>
Convert a DateTime<Utc>
instance into a DateTime<Local>
instance.
impl From<NaiveDate> for NaiveDateTime
impl From<NaiveDateTime> for NaiveDate
impl From<Error> for std::io::error::Error
impl From<Error> for rand_core::error::Error
impl From<Reason> for u32
impl From<Reason> for h2::error::Error
impl From<StreamId> for u32
impl From<HeaderName> for HeaderValue
impl From<InvalidHeaderName> for http::error::Error
impl From<InvalidHeaderValue> for http::error::Error
impl From<InvalidMethod> for http::error::Error
impl From<InvalidStatusCode> for http::error::Error
impl From<StatusCode> for u16
impl From<Authority> for Uri
Convert an Authority
into a Uri
.
impl From<PathAndQuery> for Uri
Convert a PathAndQuery
into a Uri
.
impl From<InvalidUri> for http::error::Error
impl From<InvalidUriParts> for http::error::Error
impl From<Uri> for Parts
Convert a Uri
into Parts
impl From<BigUint> for BigInt
impl From<CustomFormat> for CustomFormatBuilder
impl From<Error> for gsdk::result::Error
impl From<Error> for std::io::error::Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Map<String, Value>> for serde_json::value::Value
impl From<Number> for serde_json::value::Value
impl From<Socket> for TcpListener
impl From<Socket> for TcpStream
impl From<Socket> for UdpSocket
impl From<Socket> for UnixDatagram
impl From<Socket> for UnixListener
impl From<Socket> for UnixStream
impl From<Domain> for i32
impl From<Protocol> for i32
impl From<Type> for i32
impl From<Choice> for bool
impl From<ParseError> for FromEnvError
impl From<Url> for String
String conversion.
impl From<Error> for std::io::error::Error
impl From<Error> for rand_core::error::Error
impl From<ChaCha8Core> for rand_chacha::chacha::ChaCha8Rng
impl From<ChaCha8Core> for rand_chacha::chacha::ChaCha8Rng
impl From<ChaCha12Core> for rand_chacha::chacha::ChaCha12Rng
impl From<ChaCha12Core> for rand_chacha::chacha::ChaCha12Rng
impl From<ChaCha20Core> for rand_chacha::chacha::ChaCha20Rng
impl From<ChaCha20Core> for rand_chacha::chacha::ChaCha20Rng
impl From<Error> for std::io::error::Error
impl From<Error> for std::io::error::Error
impl From<ActorId> for gclient::metadata::runtime_types::gprimitives::ActorId
impl From<ActorId> for H256
impl From<ActorId> for [u8; 32]
impl From<AffineStorage> for Affine
impl From<BString> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<BigEndian<u32>> for u32
impl From<BigEndian<u32>> for u32
impl From<BigEndian<u32>> for [u8; 4]
impl From<BigEndian<u32>> for [u8; 4]
impl From<BigEndian<u64>> for u64
impl From<BigEndian<u64>> for [u8; 8]
impl From<BinaryReaderError> for CodeError
impl From<BinaryReaderError> for WasmError
impl From<Bits> for Value
impl From<BlockError> for BlockError
impl From<BlockError> for Error
impl From<BlockError> for Error
impl From<BrokenQuote> for GetTimezoneError
impl From<ByteStr> for Bytes
impl From<Bytes> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<Bytes> for Body
impl From<Bytes> for BytesWeak
impl From<BytesMut> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<BytesMut> for Bytes
impl From<CallError> for Error
impl From<CallError> for SubscriptionEmptyError
impl From<CertRevocationListError> for Error
impl From<CertRevocationListError> for Error
impl From<CertRevocationListError> for VerifierBuilderError
impl From<CertificateError> for AlertDescription
impl From<CertificateError> for AlertDescription
impl From<CertificateError> for Error
impl From<CertificateError> for Error
impl From<ClientConnection> for Connection
impl From<ClientConnection> for Connection
impl From<ClientConnection> for Connection
impl From<CodeId> for gclient::metadata::runtime_types::gprimitives::CodeId
impl From<CodeId> for H256
impl From<CodeId> for [u8; 32]
impl From<ColoredString> for gclient::ext::sp_core::sp_std::prelude::Box<dyn Error>
impl From<Colour> for Style
impl From<Composite<()>> for Value
impl From<Current> for Option<Id>
impl From<Custom> for Bytes
impl From<DataFlags> for u8
impl From<DecString> for ArrayString<num_format::::strings::{impl#75}::{constant#0}>
impl From<DecodeError> for gsdk::result::Error
impl From<DecodeError> for DecodeSliceError
impl From<DecodeError> for DecodeSliceError
impl From<DecodeError> for Error
impl From<DecodeError> for Error
impl From<DecodeError> for Error
impl From<DecodeError> for ErrorKind
impl From<DispatchError> for Error
impl From<Domain> for i32
impl From<ECQVCertSecret> for ECQVCertPublic
TODO: Serde serialization/deserialization
impl From<EdwardsPoint> for VerifyingKey
impl From<Elapsed> for std::io::error::Error
impl From<Elapsed> for std::io::error::Error
impl From<EmptyBatchRequest> for Error
impl From<ErrPtr> for FallibleSyscallSignature
impl From<ErrPtr> for ParamType
impl From<ErrString> for ArrayString<num_format::::strings::{impl#87}::{constant#0}>
impl From<Errno> for std::io::error::Error
impl From<Errno> for std::io::error::Error
impl From<Errno> for std::io::error::Error
impl From<Error> for gsdk::result::Error
impl From<Error> for gsdk::result::Error
impl From<Error> for gsdk::result::Error
impl From<Error> for gsdk::result::Error
impl From<Error> for gclient::Error
impl From<Error> for gclient::Error
impl From<Error> for ControlFlow<Error, Error>
impl From<Error> for String
impl From<Error> for std::io::error::Error
impl From<Error> for h2::error::Error
impl From<Error> for CertRevocationListError
impl From<Error> for ConvertError
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for Error
impl From<Error> for ErrorObject<'static>
impl From<Error> for VirtualMemoryError
impl From<Error> for WsError
impl From<Error> for WsError
impl From<Error> for WsHandshakeError
impl From<Error> for WsHandshakeError
impl From<ErrorKind> for InvalidUri
impl From<ErrorKind> for InvalidUriParts
impl From<ErrorObject<'static>> for Error
impl From<Errors> for Result<(), Errors>
impl From<Errors> for url::parser::ParseError
impl From<ExportFunction> for Export
impl From<ExportGlobal> for Export
impl From<ExportMemory> for Export
impl From<ExportTable> for Export
impl From<ExtendedPoint> for EdwardsPoint
impl From<ExtendedPoint> for EdwardsPoint
impl From<ExternRef> for Val
impl From<ExtrinsicParamsError> for Error
impl From<ExtrinsicParamsError> for Error
impl From<F32> for f32
impl From<F32> for u32
impl From<F32> for UntypedValue
impl From<F32> for Value
impl From<F64> for f64
impl From<F64> for u64
impl From<F64> for UntypedValue
impl From<F64> for Value
impl From<FieldStorage> for Field
impl From<Frame> for BacktraceFrame
impl From<FromDecStrErr> for FromStrRadixErr
impl From<FromHexError> for FromStrRadixErr
impl From<Func> for Extern
impl From<Func> for Val
impl From<FuncIndex> for EntityIndex
impl From<FuncType> for ExternType
impl From<GetRandomFailed> for Error
impl From<GetRandomFailed> for Error
impl From<Global> for Extern
impl From<GlobalIndex> for EntityIndex
impl From<GlobalType> for ExternType
impl From<H128> for [u8; 16]
impl From<H384> for [u8; 48]
impl From<H768> for [u8; 96]
impl From<HeadersFlag> for u8
impl From<HttpDate> for SystemTime
impl From<InfString> for ArrayString<num_format::::strings::{impl#99}::{constant#0}>
impl From<Instant> for gclient::ext::sp_runtime::scale_info::prelude::time::Instant
impl From<InstrumentationError> for CodeError
impl From<InternalError> for Error
impl From<InternalSignature> for Signature
impl From<InvalidMessage> for Error
impl From<InvalidMessage> for Error
impl From<InvalidParityValue> for Error
impl From<InvalidRequestId> for Error
impl From<IpAddr> for core::net::ip_addr::IpAddr
impl From<Ipv4Addr> for core::net::ip_addr::Ipv4Addr
impl From<Ipv6Addr> for core::net::ip_addr::Ipv6Addr
impl From<JoinError> for std::io::error::Error
impl From<KebabString> for String
impl From<KebabString> for String
impl From<KeyPair> for PublicKey
impl From<KeyPair> for SecretKey
impl From<KeyRejected> for Unspecified
impl From<Keypair> for gclient::ext::sp_runtime::app_crypto::sr25519::Pair
impl From<Kind> for Error
impl From<LengthMeasurement> for usize
impl From<Level> for Directive
impl From<Level> for LevelFilter
impl From<LevelFilter> for Option<Level>
impl From<LevelFilter> for Directive
impl From<LittleEndian<u32>> for u32
impl From<LittleEndian<u32>> for [u8; 4]
impl From<LittleEndian<u64>> for u64
impl From<LittleEndian<u64>> for [u8; 8]
impl From<MZFlush> for TDEFLFlush
impl From<Memory> for Extern
impl From<MemoryIndex> for EntityIndex
impl From<MemoryType> for ExternType
impl From<MemoryType> for Memory
impl From<Message> for PlainMessage
impl From<Message> for PlainMessage
impl From<MessageHandle> for u32
impl From<MessageId> for gclient::metadata::runtime_types::gprimitives::MessageId
impl From<MessageId> for H256
impl From<MessageId> for [u8; 32]
impl From<Metadata> for Metadata
impl From<Metadata> for RuntimeMetadataPrefixed
impl From<Metadata> for RuntimeMetadataV14
impl From<Metadata> for RuntimeMetadataV15
impl From<MetadataError> for gsdk::result::Error
impl From<MetadataError> for Error
impl From<MetadataError> for Error
impl From<MinString> for ArrayString<num_format::::strings::{impl#111}::{constant#0}>
impl From<MiniSecretKey> for gclient::ext::sp_runtime::app_crypto::sr25519::Pair
impl From<Mode> for u32
impl From<Mode> for u32
impl From<ModuleError> for ModuleError
impl From<ModuleScaffold> for Module
impl From<ModuleScaffold> for Module
impl From<MultiRemovalResults> for KillStorageResult
impl From<NanString> for ArrayString<num_format::::strings::{impl#123}::{constant#0}>
impl From<NonZeroU256> for U256
impl From<NumberOrHex> for U256
impl From<NumberOrHex> for U256
impl From<Okm<'_, &'static Algorithm>> for HeaderProtectionKey
impl From<Okm<'_, &'static Algorithm>> for UnboundKey
impl From<Okm<'_, Algorithm>> for Key
impl From<Okm<'_, Algorithm>> for Prk
impl From<Okm<'_, Algorithm>> for Salt
impl From<OpCode> for u8
impl From<OtherError> for Error
impl From<OwnedCertRevocationList> for CertRevocationList<'_>
impl From<PackedIndex> for u32
impl From<Pages> for Bytes
impl From<Pages> for Bytes
impl From<ParamType> for ValueType
impl From<Parity> for i32
The conversion returns 0
for even parity and 1
for odd.
impl From<Parity> for u8
The conversion returns 0
for even parity and 1
for odd.
impl From<ParseBitSequenceError> for ParseErrorKind
impl From<ParseCharError> for ParseErrorKind
impl From<ParseComplexError> for ParseErrorKind
impl From<ParseLevelFilterError> for tracing_subscriber::filter::directive::ParseError
impl From<ParseNumberError> for ParseErrorKind
impl From<ParseStringError> for ParseErrorKind
impl From<ParserNumber> for Number
impl From<PeerIncompatible> for Error
impl From<PeerIncompatible> for Error
impl From<PeerMisbehaved> for Error
impl From<PeerMisbehaved> for Error
impl From<PlusString> for ArrayString<num_format::::strings::{impl#135}::{constant#0}>
impl From<Pointer> for u64
impl From<Protocol> for i32
impl From<Ptr> for RegularParamType
impl From<PublicKey> for PublicKey
Creates a new public key from a FFI public key
impl From<PublicKey> for XOnlyPublicKey
impl From<PushPromiseFlag> for u8
impl From<RawSs58Address> for [u8; 32]
impl From<RecoverableSignature> for gclient::ext::sp_runtime::app_crypto::ecdsa::Signature
impl From<RecoverableSignature> for RecoverableSignature
Creates a new recoverable signature from a FFI one.
impl From<RefType> for ValType
impl From<RegisterMethodError> for Error
impl From<ReservationId> for H256
impl From<ReservationId> for [u8; 32]
impl From<Result> for Result<(), Unspecified>
impl From<Result> for Result<(), Unspecified>
impl From<RootArcs> for u8
impl From<RpcError> for Error
impl From<RuntimeMetadataPrefixed> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<RuntimeMetadataV14> for RuntimeMetadataPrefixed
impl From<RuntimeMetadataV15> for RuntimeMetadataPrefixed
impl From<SecretKey> for gclient::ext::sp_runtime::app_crypto::sr25519::Pair
impl From<SecretKey> for Keypair
impl From<SecretKey> for PublicKey
impl From<SecretKey> for Scalar
impl From<SendError> for h2::error::Error
impl From<SendError> for Error
impl From<SepString> for ArrayString<num_format::::strings::{impl#147}::{constant#0}>
impl From<SerdeHelper> for SigningKey
impl From<ServerConnection> for Connection
impl From<ServerConnection> for Connection
impl From<ServerConnection> for Connection
impl From<SettingsFlags> for u8
impl From<Signature> for gclient::ext::sp_runtime::app_crypto::sr25519::Signature
impl From<Signature> for Signature
impl From<Signature> for Signature
Creates a new signature from a FFI signature
impl From<Signature> for [u8; 64]
impl From<Signature> for [u8; 64]
impl From<SigningKey> for [u8; 32]
impl From<SmallIndex> for PatternID
impl From<SmallIndex> for StateID
impl From<Socket> for TcpListener
impl From<Socket> for TcpStream
impl From<Socket> for UdpSocket
impl From<Socket> for OwnedFd
impl From<Socket> for UnixDatagram
impl From<Socket> for UnixListener
impl From<Socket> for UnixStream
impl From<Span> for Option<Id>
impl From<Span> for gclient::ext::sp_core::sp_std::ops::Range<usize>
impl From<Span> for gclient::ext::sp_core::sp_std::ops::Range<usize>
impl From<SpawnError> for std::io::error::Error
impl From<State> for usize
impl From<State> for usize
impl From<State> for usize
impl From<StorageAddressError> for Error
impl From<StorageAddressError> for Error
impl From<StreamId> for u32
impl From<StreamOf<Result<Block<GearConfig, OnlineClient<GearConfig>>, Error>>> for Blocks
impl From<StreamOf<Result<Block<GearConfig, OnlineClient<GearConfig>>, Error>>> for Events
impl From<StreamResult> for Result<MZStatus, MZError>
impl From<SubscriptionAcceptRejectError> for SubscriptionEmptyError
impl From<SubscriptionClosed> for ErrorObject<'static>
impl From<Table> for Extern
impl From<TableIndex> for EntityIndex
impl From<TableType> for ExternType
impl From<Tag> for u8
impl From<Tag> for u8
impl From<Tag> for u8
impl From<Tag> for u8
impl From<Tag> for u8
impl From<Tag> for usize
impl From<Tag> for usize
impl From<Tag> for usize
impl From<Tag> for usize
impl From<Tag> for usize
impl From<TagType> for Tag
impl From<Token> for usize
impl From<TokenRegistry> for Token
impl From<TransactionError> for Error
impl From<Trap> for Error
impl From<Trap> for ResumableError
impl From<Trap> for TrapReason
impl From<TrapCode> for Trap
impl From<TryFromError> for Error
impl From<TxStatus<GearConfig, OnlineClient<GearConfig>>> for gsdk::result::Error
impl From<Type> for i32
impl From<U128> for U256
impl From<U128> for U512
impl From<U128> for [u8; 16]
impl From<Uint8> for u8
impl From<Uint8> for u8
impl From<Uint32> for u32
impl From<Uint32> for u32
impl From<Uint64> for u64
impl From<Uint64> for u64
impl From<UnknownOpCode> for Error
impl From<Unparsed> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<Unparsed> for gclient::ext::sp_runtime::app_crypto::Vec<u8>
impl From<UnsupportedOperationError> for Error
impl From<UntypedValue> for bool
impl From<UntypedValue> for f32
impl From<UntypedValue> for f64
impl From<UntypedValue> for i8
impl From<UntypedValue> for i16
impl From<UntypedValue> for i32
impl From<UntypedValue> for i64
impl From<UntypedValue> for u8
impl From<UntypedValue> for u16
impl From<UntypedValue> for u32
impl From<UntypedValue> for u64
impl From<UntypedValue> for F32
impl From<UntypedValue> for F64
impl From<UserError> for h2::error::Error
impl From<VMExternRef> for TableElement
impl From<Value> for ReturnValue
impl From<Value> for UntypedValue
impl From<Value> for Value
impl From<Value> for Value
impl From<ValueType> for u8
impl From<ValueType> for StackValueType
impl From<ValueType> for ValueType
impl From<ValueType> for ValueType
impl From<VarInt7> for i8
impl From<VarInt7> for i8
impl From<VarInt32> for i32
impl From<VarInt32> for i32
impl From<VarInt64> for i64
impl From<VarInt64> for i64
impl From<VarUint1> for bool
impl From<VarUint1> for bool
impl From<VarUint7> for u8
impl From<VarUint7> for u8
impl From<VarUint32> for u32
impl From<VarUint32> for u32
impl From<VarUint32> for usize
impl From<VarUint32> for usize
impl From<VarUint64> for u64
impl From<VarUint64> for u64
impl From<Variant<()>> for Value
impl From<VerificationKey> for VerificationKeyBytes
impl From<VerificationKey> for [u8; 32]
impl From<VerificationKeyBytes> for [u8; 32]
impl From<WasmEntryAttributes> for Span
impl From<WasmError> for CompileError
impl From<WasmType> for ValType
impl From<Window> for isize
impl From<Words> for Bytes
impl From<Words> for Bytes
impl From<Writer> for gclient::ext::sp_core::sp_std::prelude::Box<[u8]>
impl From<XOnlyPublicKey> for XOnlyPublicKey
Creates a new Schnorr public key from a FFI x-only public key.