Struct devol_accounts_kit::accounts::buffer::buffer_account::BufferAccount
source · #[repr(C)]pub struct BufferAccount {
pub header: AccountHeader,
}Fields§
§header: AccountHeaderTrait Implementations§
source§impl Clone for BufferAccount
impl Clone for BufferAccount
source§fn clone(&self) -> BufferAccount
fn clone(&self) -> BufferAccount
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 DevolAccount for BufferAccount
impl DevolAccount for BufferAccount
fn expected_size() -> usize
fn expected_tag() -> u8
fn expected_version() -> u32
fn account_header<'a>(data: Ref<'_, &mut [u8]>) -> &'a AccountHeader
fn check_basic( account_info: &AccountInfo<'_>, root_addr: &Pubkey, program_id: &Pubkey ) -> Result<(), DvlError>
fn check_size( tag: AccountTag, account_data: Ref<'_, &mut [u8]> ) -> Result<(), DvlError>
fn check_tag_and_version( tag: AccountTag, header: &AccountHeader ) -> Result<(), DvlError>
fn check_root( tag: AccountTag, header: &AccountHeader, root_addr: &Pubkey ) -> Result<(), DvlError>
fn check_program_id( tag: AccountTag, account_info: &AccountInfo<'_>, program_id: &Pubkey ) -> Result<(), DvlError>
source§fn from_account_info_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
fn from_account_info_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a reference of Self for on-chain use without the intent to modify the data.source§fn from_account_info_mut_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
fn from_account_info_mut_basic<'a>(
account_info: &'a AccountInfo<'_>,
root_addr: &Pubkey,
program_id: &Pubkey
) -> Result<&'a mut Self, DvlError>where
Self: Sized,
Transforms
AccountInfo into a mutable reference of Self for on-chain use with the intent to modify the data.
Ensures the account is marked as writable.impl Copy for BufferAccount
Auto Trait Implementations§
impl Freeze for BufferAccount
impl RefUnwindSafe for BufferAccount
impl Send for BufferAccount
impl Sync for BufferAccount
impl Unpin for BufferAccount
impl UnwindSafe for BufferAccount
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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