pub struct StateObjectEntry {
pub state_object: Option<StateObject>,
pub status: ObjectStatus,
}Fields§
§state_object: Option<StateObject>State object entry. None if account known to be non-existant.
status: ObjectStatusImplementations§
Source§impl StateObjectEntry
impl StateObjectEntry
Sourcepub fn new_clean(state_object: Option<StateObject>) -> StateObjectEntry
pub fn new_clean(state_object: Option<StateObject>) -> StateObjectEntry
Create a new entry with status Clean.
Sourcepub fn new_dirty(state_object: Option<StateObject>) -> StateObjectEntry
pub fn new_dirty(state_object: Option<StateObject>) -> StateObjectEntry
Create a new entry with status Dirty.
Sourcepub fn clone_dirty(&self) -> StateObjectEntry
pub fn clone_dirty(&self) -> StateObjectEntry
Clone dirty data into new ObjectEntry. This includes
account data and modified storage keys.
Sourcepub fn merge(&mut self, other: StateObjectEntry)
pub fn merge(&mut self, other: StateObjectEntry)
Merge with others.
Trait Implementations§
Source§impl Clone for StateObjectEntry
impl Clone for StateObjectEntry
Source§fn clone(&self) -> StateObjectEntry
fn clone(&self) -> StateObjectEntry
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 Freeze for StateObjectEntry
impl RefUnwindSafe for StateObjectEntry
impl Send for StateObjectEntry
impl Sync for StateObjectEntry
impl Unpin for StateObjectEntry
impl UnwindSafe for StateObjectEntry
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