Skip to main content

MultiVersion

Enum MultiVersion 

Source
pub enum MultiVersion<A = InvalidVersion, B = InvalidVersion, C = InvalidVersion, D = InvalidVersion, E = InvalidVersion, F = InvalidVersion, G = InvalidVersion, H = InvalidVersion, I = InvalidVersion, J = InvalidVersion, K = InvalidVersion, L = InvalidVersion, M = InvalidVersion, N = InvalidVersion, O = InvalidVersion, P = InvalidVersion, Q = InvalidVersion, R = InvalidVersion, S = InvalidVersion, T = InvalidVersion, U = InvalidVersion, V = InvalidVersion, W = InvalidVersion, X = InvalidVersion, Y = InvalidVersion, Z = InvalidVersion> {
Show 26 variants A(A), B(B), C(C), D(D), E(E), F(F), G(G), H(H), I(I), J(J), K(K), L(L), M(M), N(N), O(O), P(P), Q(Q), R(R), S(S), T(T), U(U), V(V), W(W), X(X), Y(Y), Z(Z),
}
Expand description

An implementation of Pipeline that aggregates multiple versioned transaction extension pipeline.

It is an enum where each variant has its own version, duplicated version must be avoided, only the first used version will be effective other duplicated version will be ignored.

Versioned transaction extension pipelines are configured using the generic parameters.

§Example

use sp_runtime::traits::{MultiVersion, PipelineAtVers};

struct PaymentExt;
struct PaymentExtV2;
struct NonceExt;

type ExtV1 = PipelineAtVers<1, (NonceExt, PaymentExt)>;
type ExtV4 = PipelineAtVers<4, (NonceExt, PaymentExtV2)>;

/// The transaction extension pipeline that supports both version 1 and 4.
type TransactionExtension = MultiVersion<ExtV1, ExtV4>;

Variants§

§

A(A)

The transaction extension pipeline of a specific version.

§

B(B)

The transaction extension pipeline of a specific version.

§

C(C)

The transaction extension pipeline of a specific version.

§

D(D)

The transaction extension pipeline of a specific version.

§

E(E)

The transaction extension pipeline of a specific version.

§

F(F)

The transaction extension pipeline of a specific version.

§

G(G)

The transaction extension pipeline of a specific version.

§

H(H)

The transaction extension pipeline of a specific version.

§

I(I)

The transaction extension pipeline of a specific version.

§

J(J)

The transaction extension pipeline of a specific version.

§

K(K)

The transaction extension pipeline of a specific version.

§

L(L)

The transaction extension pipeline of a specific version.

§

M(M)

The transaction extension pipeline of a specific version.

§

N(N)

The transaction extension pipeline of a specific version.

§

O(O)

The transaction extension pipeline of a specific version.

§

P(P)

The transaction extension pipeline of a specific version.

§

Q(Q)

The transaction extension pipeline of a specific version.

§

R(R)

The transaction extension pipeline of a specific version.

§

S(S)

The transaction extension pipeline of a specific version.

§

T(T)

The transaction extension pipeline of a specific version.

§

U(U)

The transaction extension pipeline of a specific version.

§

V(V)

The transaction extension pipeline of a specific version.

§

W(W)

The transaction extension pipeline of a specific version.

§

X(X)

The transaction extension pipeline of a specific version.

§

Y(Y)

The transaction extension pipeline of a specific version.

§

Z(Z)

The transaction extension pipeline of a specific version.

Trait Implementations§

Source§

impl<A: Clone, B: Clone, C: Clone, D: Clone, E: Clone, F: Clone, G: Clone, H: Clone, I: Clone, J: Clone, K: Clone, L: Clone, M: Clone, N: Clone, O: Clone, P: Clone, Q: Clone, R: Clone, S: Clone, T: Clone, U: Clone, V: Clone, W: Clone, X: Clone, Y: Clone, Z: Clone> Clone for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

fn clone( &self, ) -> MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug, I: Debug, J: Debug, K: Debug, L: Debug, M: Debug, N: Debug, O: Debug, P: Debug, Q: Debug, R: Debug, S: Debug, T: Debug, U: Debug, V: Debug, W: Debug, X: Debug, Y: Debug, Z: Debug> Debug for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A: DecodeWithVersion + MultiVersionItem, B: DecodeWithVersion + MultiVersionItem, C: DecodeWithVersion + MultiVersionItem, D: DecodeWithVersion + MultiVersionItem, E: DecodeWithVersion + MultiVersionItem, F: DecodeWithVersion + MultiVersionItem, G: DecodeWithVersion + MultiVersionItem, H: DecodeWithVersion + MultiVersionItem, I: DecodeWithVersion + MultiVersionItem, J: DecodeWithVersion + MultiVersionItem, K: DecodeWithVersion + MultiVersionItem, L: DecodeWithVersion + MultiVersionItem, M: DecodeWithVersion + MultiVersionItem, N: DecodeWithVersion + MultiVersionItem, O: DecodeWithVersion + MultiVersionItem, P: DecodeWithVersion + MultiVersionItem, Q: DecodeWithVersion + MultiVersionItem, R: DecodeWithVersion + MultiVersionItem, S: DecodeWithVersion + MultiVersionItem, T: DecodeWithVersion + MultiVersionItem, U: DecodeWithVersion + MultiVersionItem, V: DecodeWithVersion + MultiVersionItem, W: DecodeWithVersion + MultiVersionItem, X: DecodeWithVersion + MultiVersionItem, Y: DecodeWithVersion + MultiVersionItem, Z: DecodeWithVersion + MultiVersionItem> DecodeWithVersion for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

fn decode_with_version<CodecInput: Input>( extension_version: u8, input: &mut CodecInput, ) -> Result<Self, Error>

Decode the type from the given version and input.
Source§

impl<A: Encode, B: Encode, C: Encode, D: Encode, E: Encode, F: Encode, G: Encode, H: Encode, I: Encode, J: Encode, K: Encode, L: Encode, M: Encode, N: Encode, O: Encode, P: Encode, Q: Encode, R: Encode, S: Encode, T: Encode, U: Encode, V: Encode, W: Encode, X: Encode, Y: Encode, Z: Encode> Encode for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
Source§

fn encode(&self) -> Vec<u8>

Convert self to an owned vector.
Source§

fn encode_to<CodecOutput: Output + ?Sized>(&self, dest: &mut CodecOutput)

Convert self to a slice and append it to the destination.
Source§

fn encoded_size(&self) -> usize

Calculates the encoded size. Read more
Source§

fn using_encoded<FunctionResult, Function: FnOnce(&[u8]) -> FunctionResult>( &self, f: Function, ) -> FunctionResult

Convert self to a slice and then invoke the given closure with it.
Source§

impl<A: PartialEq, B: PartialEq, C: PartialEq, D: PartialEq, E: PartialEq, F: PartialEq, G: PartialEq, H: PartialEq, I: PartialEq, J: PartialEq, K: PartialEq, L: PartialEq, M: PartialEq, N: PartialEq, O: PartialEq, P: PartialEq, Q: PartialEq, R: PartialEq, S: PartialEq, T: PartialEq, U: PartialEq, V: PartialEq, W: PartialEq, X: PartialEq, Y: PartialEq, Z: PartialEq> PartialEq for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

fn eq( &self, other: &MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>, ) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<A: Pipeline<Call> + MultiVersionItem, B: Pipeline<Call> + MultiVersionItem, C: Pipeline<Call> + MultiVersionItem, D: Pipeline<Call> + MultiVersionItem, E: Pipeline<Call> + MultiVersionItem, F: Pipeline<Call> + MultiVersionItem, G: Pipeline<Call> + MultiVersionItem, H: Pipeline<Call> + MultiVersionItem, I: Pipeline<Call> + MultiVersionItem, J: Pipeline<Call> + MultiVersionItem, K: Pipeline<Call> + MultiVersionItem, L: Pipeline<Call> + MultiVersionItem, M: Pipeline<Call> + MultiVersionItem, N: Pipeline<Call> + MultiVersionItem, O: Pipeline<Call> + MultiVersionItem, P: Pipeline<Call> + MultiVersionItem, Q: Pipeline<Call> + MultiVersionItem, R: Pipeline<Call> + MultiVersionItem, S: Pipeline<Call> + MultiVersionItem, T: Pipeline<Call> + MultiVersionItem, U: Pipeline<Call> + MultiVersionItem, V: Pipeline<Call> + MultiVersionItem, W: Pipeline<Call> + MultiVersionItem, X: Pipeline<Call> + MultiVersionItem, Y: Pipeline<Call> + MultiVersionItem, Z: Pipeline<Call> + MultiVersionItem, Call: Dispatchable> Pipeline<Call> for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

fn build_metadata(builder: &mut PipelineMetadataBuilder)

Build the metadata for the versioned transaction extension pipeline.
Source§

fn validate_only( &self, origin: DispatchOriginOf<Call>, call: &Call, info: &DispatchInfoOf<Call>, len: usize, source: TransactionSource, ) -> Result<ValidTransaction, TransactionValidityError>

Validate a transaction.
Source§

fn dispatch_transaction( self, origin: DispatchOriginOf<Call>, call: Call, info: &DispatchInfoOf<Call>, len: usize, ) -> ApplyExtrinsicResultWithInfo<PostDispatchInfoOf<Call>>

Dispatch a transaction.
Source§

fn weight(&self, call: &Call) -> Weight

Return the pre dispatch weight for the given versioned transaction extension pipeline and call.
Source§

impl<A: PipelineVersion, B: PipelineVersion, C: PipelineVersion, D: PipelineVersion, E: PipelineVersion, F: PipelineVersion, G: PipelineVersion, H: PipelineVersion, I: PipelineVersion, J: PipelineVersion, K: PipelineVersion, L: PipelineVersion, M: PipelineVersion, N: PipelineVersion, O: PipelineVersion, P: PipelineVersion, Q: PipelineVersion, R: PipelineVersion, S: PipelineVersion, T: PipelineVersion, U: PipelineVersion, V: PipelineVersion, W: PipelineVersion, X: PipelineVersion, Y: PipelineVersion, Z: PipelineVersion> PipelineVersion for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

fn version(&self) -> u8

Return the version for the given versioned transaction extension pipeline.
Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> TypeInfo for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>
where A: TypeInfo + 'static, B: TypeInfo + 'static, C: TypeInfo + 'static, D: TypeInfo + 'static, E: TypeInfo + 'static, F: TypeInfo + 'static, G: TypeInfo + 'static, H: TypeInfo + 'static, I: TypeInfo + 'static, J: TypeInfo + 'static, K: TypeInfo + 'static, L: TypeInfo + 'static, M: TypeInfo + 'static, N: TypeInfo + 'static, O: TypeInfo + 'static, P: TypeInfo + 'static, Q: TypeInfo + 'static, R: TypeInfo + 'static, S: TypeInfo + 'static, T: TypeInfo + 'static, U: TypeInfo + 'static, V: TypeInfo + 'static, W: TypeInfo + 'static, X: TypeInfo + 'static, Y: TypeInfo + 'static, Z: TypeInfo + 'static,

Source§

type Identity = MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

The type identifying for which type info is provided. Read more
Source§

fn type_info() -> Type

Returns the static type identifier for Self.
Source§

impl<A: DecodeWithVersionWithMemTracking + MultiVersionItem, B: DecodeWithVersionWithMemTracking + MultiVersionItem, C: DecodeWithVersionWithMemTracking + MultiVersionItem, D: DecodeWithVersionWithMemTracking + MultiVersionItem, E: DecodeWithVersionWithMemTracking + MultiVersionItem, F: DecodeWithVersionWithMemTracking + MultiVersionItem, G: DecodeWithVersionWithMemTracking + MultiVersionItem, H: DecodeWithVersionWithMemTracking + MultiVersionItem, I: DecodeWithVersionWithMemTracking + MultiVersionItem, J: DecodeWithVersionWithMemTracking + MultiVersionItem, K: DecodeWithVersionWithMemTracking + MultiVersionItem, L: DecodeWithVersionWithMemTracking + MultiVersionItem, M: DecodeWithVersionWithMemTracking + MultiVersionItem, N: DecodeWithVersionWithMemTracking + MultiVersionItem, O: DecodeWithVersionWithMemTracking + MultiVersionItem, P: DecodeWithVersionWithMemTracking + MultiVersionItem, Q: DecodeWithVersionWithMemTracking + MultiVersionItem, R: DecodeWithVersionWithMemTracking + MultiVersionItem, S: DecodeWithVersionWithMemTracking + MultiVersionItem, T: DecodeWithVersionWithMemTracking + MultiVersionItem, U: DecodeWithVersionWithMemTracking + MultiVersionItem, V: DecodeWithVersionWithMemTracking + MultiVersionItem, W: DecodeWithVersionWithMemTracking + MultiVersionItem, X: DecodeWithVersionWithMemTracking + MultiVersionItem, Y: DecodeWithVersionWithMemTracking + MultiVersionItem, Z: DecodeWithVersionWithMemTracking + MultiVersionItem> DecodeWithVersionWithMemTracking for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

impl<A: Eq, B: Eq, C: Eq, D: Eq, E: Eq, F: Eq, G: Eq, H: Eq, I: Eq, J: Eq, K: Eq, L: Eq, M: Eq, N: Eq, O: Eq, P: Eq, Q: Eq, R: Eq, S: Eq, T: Eq, U: Eq, V: Eq, W: Eq, X: Eq, Y: Eq, Z: Eq> Eq for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> StructuralPartialEq for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Auto Trait Implementations§

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Freeze for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>
where A: Freeze, B: Freeze, C: Freeze, D: Freeze, E: Freeze, F: Freeze, G: Freeze, H: Freeze, I: Freeze, J: Freeze, K: Freeze, L: Freeze, M: Freeze, N: Freeze, O: Freeze, P: Freeze, Q: Freeze, R: Freeze, S: Freeze, T: Freeze, U: Freeze, V: Freeze, W: Freeze, X: Freeze, Y: Freeze, Z: Freeze,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> RefUnwindSafe for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Send for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>
where A: Send, B: Send, C: Send, D: Send, E: Send, F: Send, G: Send, H: Send, I: Send, J: Send, K: Send, L: Send, M: Send, N: Send, O: Send, P: Send, Q: Send, R: Send, S: Send, T: Send, U: Send, V: Send, W: Send, X: Send, Y: Send, Z: Send,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Sync for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>
where A: Sync, B: Sync, C: Sync, D: Sync, E: Sync, F: Sync, G: Sync, H: Sync, I: Sync, J: Sync, K: Sync, L: Sync, M: Sync, N: Sync, O: Sync, P: Sync, Q: Sync, R: Sync, S: Sync, T: Sync, U: Sync, V: Sync, W: Sync, X: Sync, Y: Sync, Z: Sync,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> Unpin for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>
where A: Unpin, B: Unpin, C: Unpin, D: Unpin, E: Unpin, F: Unpin, G: Unpin, H: Unpin, I: Unpin, J: Unpin, K: Unpin, L: Unpin, M: Unpin, N: Unpin, O: Unpin, P: Unpin, Q: Unpin, R: Unpin, S: Unpin, T: Unpin, U: Unpin, V: Unpin, W: Unpin, X: Unpin, Y: Unpin, Z: Unpin,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> UnsafeUnpin for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> UnwindSafe for MultiVersion<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CheckedConversion for T

Source§

fn checked_from<T>(t: T) -> Option<Self>
where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
Source§

fn checked_into<T>(self) -> Option<T>
where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Src, Dest> IntoTuple<Dest> for Src
where Dest: FromTuple<Src>,

Source§

fn into_tuple(self) -> Dest

Source§

impl<T, Outer> IsWrappedBy<Outer> for T
where Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

Source§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

Source§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatedConversion for T

Source§

fn saturated_from<T>(t: T) -> Self
where Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
Source§

fn saturated_into<T>(self) -> T
where Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> UncheckedInto<T> for S
where T: UncheckedFrom<S>,

Source§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
Source§

impl<T, S> UniqueSaturatedInto<T> for S
where T: Bounded, S: TryInto<T>,

Source§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> EncodeLike<&&T> for T
where T: Encode,

Source§

impl<T> EncodeLike<&T> for T
where T: Encode,

Source§

impl<T> EncodeLike<&mut T> for T
where T: Encode,

Source§

impl<T> EncodeLike<Arc<T>> for T
where T: Encode,

Source§

impl<T> EncodeLike<Box<T>> for T
where T: Encode,

Source§

impl<T> EncodeLike<Cow<'_, T>> for T
where T: ToOwned + Encode,

Source§

impl<T> EncodeLike<Rc<T>> for T
where T: Encode,

Source§

impl<T> JsonSchemaMaybe for T

Source§

impl<T> MaybeDebug for T
where T: Debug,

Source§

impl<T> MaybeRefUnwindSafe for T
where T: RefUnwindSafe,

Source§

impl<T> Member for T
where T: Send + Sync + Debug + Eq + PartialEq + Clone + 'static,

Source§

impl<T> StaticTypeInfo for T
where T: TypeInfo + 'static,