Struct ark_api_ffi::behavior_controller_v0::AspectUpsert
source · [−]#[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: AspectAddrImplementations
sourceimpl 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
sourceimpl Clone for AspectUpsert
impl Clone for AspectUpsert
sourcefn clone(&self) -> AspectUpsert
fn clone(&self) -> AspectUpsert
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AspectUpsert
impl Debug for AspectUpsert
sourceimpl PartialEq<AspectUpsert> for AspectUpsert
impl PartialEq<AspectUpsert> for AspectUpsert
sourcefn eq(&self, other: &AspectUpsert) -> bool
fn eq(&self, other: &AspectUpsert) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AspectUpsert) -> bool
fn ne(&self, other: &AspectUpsert) -> bool
This method tests for !=.
impl Copy for AspectUpsert
impl Eq for AspectUpsert
impl Pod for AspectUpsert
impl StructuralEq for AspectUpsert
impl StructuralPartialEq for AspectUpsert
Auto Trait Implementations
impl RefUnwindSafe for AspectUpsert
impl Send for AspectUpsert
impl Sync for AspectUpsert
impl Unpin for AspectUpsert
impl UnwindSafe for AspectUpsert
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> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
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. Read more
sourcefn 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.