pub struct ExtrinsicExtensions<'info, TypeId> { /* private fields */ }
Expand description
Information about the extrinsic signed extensions.
Implementations§
Source§impl<'info, TypeId> ExtrinsicExtensions<'info, TypeId>
impl<'info, TypeId> ExtrinsicExtensions<'info, TypeId>
Sourcepub fn into_owned(self) -> ExtrinsicExtensions<'static, TypeId>
pub fn into_owned(self) -> ExtrinsicExtensions<'static, TypeId>
Take ownership of the signature.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &NamedArg<'info, TypeId>>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &NamedArg<'info, TypeId>>
Iterate over the signed extension argument names and types.
Sourcepub fn range(&self) -> Range<usize>
pub fn range(&self) -> Range<usize>
Return a range denoting the transaction extension bytes. This does not include any version byte.
Sourcepub fn map_type_id<NewTypeId, F>(
self,
f: F,
) -> ExtrinsicExtensions<'info, NewTypeId>where
F: FnMut(TypeId) -> NewTypeId,
pub fn map_type_id<NewTypeId, F>(
self,
f: F,
) -> ExtrinsicExtensions<'info, NewTypeId>where
F: FnMut(TypeId) -> NewTypeId,
Map the extensions type IDs to something else.
Trait Implementations§
Source§impl<'info, TypeId: Clone> Clone for ExtrinsicExtensions<'info, TypeId>
impl<'info, TypeId: Clone> Clone for ExtrinsicExtensions<'info, TypeId>
Source§fn clone(&self) -> ExtrinsicExtensions<'info, TypeId>
fn clone(&self) -> ExtrinsicExtensions<'info, TypeId>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'info, TypeId> Freeze for ExtrinsicExtensions<'info, TypeId>
impl<'info, TypeId> RefUnwindSafe for ExtrinsicExtensions<'info, TypeId>where
TypeId: RefUnwindSafe,
impl<'info, TypeId> Send for ExtrinsicExtensions<'info, TypeId>where
TypeId: Send,
impl<'info, TypeId> Sync for ExtrinsicExtensions<'info, TypeId>where
TypeId: Sync,
impl<'info, TypeId> Unpin for ExtrinsicExtensions<'info, TypeId>where
TypeId: Unpin,
impl<'info, TypeId> UnwindSafe for ExtrinsicExtensions<'info, TypeId>where
TypeId: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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