Struct aptos_vm::move_vm_ext::NativeAggregatorContext
source · [−]pub struct NativeAggregatorContext<'a> { /* private fields */ }
Expand description
Native context that can be attached to VM NativeContextExtensions
.
Note: table resolver is reused for fine-grained storage access.
Implementations
sourceimpl<'a> NativeAggregatorContext<'a>
impl<'a> NativeAggregatorContext<'a>
sourcepub fn new(txn_hash: u128, resolver: &'a dyn TableResolver) -> Self
pub fn new(txn_hash: u128, resolver: &'a dyn TableResolver) -> Self
Creates a new instance of a native aggregator context. This must be passed into VM session.
sourcepub fn into_change_set(self) -> AggregatorChangeSet
pub fn into_change_set(self) -> AggregatorChangeSet
Returns all changes made within this context (i.e. by a single transaction).
Trait Implementations
impl<'a> TidAble<'a> for NativeAggregatorContext<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for NativeAggregatorContext<'a>
impl<'a> !Send for NativeAggregatorContext<'a>
impl<'a> !Sync for NativeAggregatorContext<'a>
impl<'a> Unpin for NativeAggregatorContext<'a>
impl<'a> !UnwindSafe for NativeAggregatorContext<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<'a, X> TidExt<'a> for X where
X: Tid<'a> + ?Sized,
impl<'a, X> TidExt<'a> for X where
X: Tid<'a> + ?Sized,
sourcefn is<T>(&self) -> bool where
T: Tid<'a>,
fn is<T>(&self) -> bool where
T: Tid<'a>,
Returns true if type behind self is equal to the type of T.
sourcefn downcast_ref<T>(&'b self) -> Option<&'b T> where
T: Tid<'a>,
fn downcast_ref<T>(&'b self) -> Option<&'b T> where
T: Tid<'a>,
Attempts to downcast self to T
behind reference
sourcefn downcast_mut<T>(&'b mut self) -> Option<&'b mut T> where
T: Tid<'a>,
fn downcast_mut<T>(&'b mut self) -> Option<&'b mut T> where
T: Tid<'a>,
Attempts to downcast self to T
behind mutable reference
sourcefn downcast_rc<T>(self: Rc<X>) -> Result<Rc<T>, Rc<X>> where
T: Tid<'a>,
fn downcast_rc<T>(self: Rc<X>) -> Result<Rc<T>, Rc<X>> where
T: Tid<'a>,
Attempts to downcast self to T
behind Rc
pointer
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more