#[repr(C)]pub struct MemoryInitializeFinalizeEvent {
pub addr: u32,
pub value: u32,
pub shard: u32,
pub timestamp: u32,
}
Expand description
Memory Initialize/Finalize Event.
This object encapsulates the information needed to prove a memory initialize or finalize operation. This includes the address, value, shard, timestamp, and whether the memory is initialized or finalized.
Fields§
§addr: u32
The address.
value: u32
The value.
shard: u32
The shard number.
timestamp: u32
The timestamp.
Implementations§
Source§impl MemoryInitializeFinalizeEvent
impl MemoryInitializeFinalizeEvent
Sourcepub const fn initialize(addr: u32, value: u32) -> Self
pub const fn initialize(addr: u32, value: u32) -> Self
Creates a new MemoryInitializeFinalizeEvent
for an initialization.
Sourcepub const fn finalize_from_record(addr: u32, record: &MemoryRecord) -> Self
pub const fn finalize_from_record(addr: u32, record: &MemoryRecord) -> Self
Creates a new MemoryInitializeFinalizeEvent
for a finalization.
Trait Implementations§
Source§impl Clone for MemoryInitializeFinalizeEvent
impl Clone for MemoryInitializeFinalizeEvent
Source§fn clone(&self) -> MemoryInitializeFinalizeEvent
fn clone(&self) -> MemoryInitializeFinalizeEvent
Returns a copy 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 moreSource§impl<'de> Deserialize<'de> for MemoryInitializeFinalizeEvent
impl<'de> Deserialize<'de> for MemoryInitializeFinalizeEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for MemoryInitializeFinalizeEvent
Auto Trait Implementations§
impl Freeze for MemoryInitializeFinalizeEvent
impl RefUnwindSafe for MemoryInitializeFinalizeEvent
impl Send for MemoryInitializeFinalizeEvent
impl Sync for MemoryInitializeFinalizeEvent
impl Unpin for MemoryInitializeFinalizeEvent
impl UnwindSafe for MemoryInitializeFinalizeEvent
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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