#[repr(C)]pub struct AspectUpsert {
pub addr: AspectAddr,
/* private fields */
}
Expand description
A command used for aspect_upsert
to issue an aspect insertion/update
that needs to be synced with the host
Note: it is up to the user to ensure that the serialized aspect data this structure points to is
alive when used in calls such as aspect_upsert
Fields§
§addr: AspectAddr
Implementations§
Source§impl AspectUpsert
impl AspectUpsert
Sourcepub fn new(addr: AspectAddr, serialized_aspect_data: &[u8]) -> Self
pub fn new(addr: AspectAddr, serialized_aspect_data: &[u8]) -> Self
Construct a new AspectUpsert
given the provided address and serialized aspect data
Sourcepub fn aspect_ptr(&self) -> u32
pub fn aspect_ptr(&self) -> u32
Retrieve a pointer to the serialized aspect slice
Note: there is no check to ensure the data is still alive
Sourcepub fn aspect_len(&self) -> u32
pub fn aspect_len(&self) -> u32
Retrieve the length of the serialized aspect slice
Trait Implementations§
Source§impl Clone for AspectUpsert
impl Clone for AspectUpsert
Source§fn clone(&self) -> AspectUpsert
fn clone(&self) -> AspectUpsert
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 moreSource§impl Debug for AspectUpsert
impl Debug for AspectUpsert
Source§impl PartialEq for AspectUpsert
impl PartialEq for AspectUpsert
impl Copy for AspectUpsert
impl Eq for AspectUpsert
impl Pod for AspectUpsert
impl StructuralPartialEq for AspectUpsert
Auto Trait Implementations§
impl Freeze for AspectUpsert
impl RefUnwindSafe for AspectUpsert
impl Send for AspectUpsert
impl Sync for AspectUpsert
impl Unpin for AspectUpsert
impl UnwindSafe for AspectUpsert
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.