pub struct Interface<'a, T> { /* private fields */ }Trait Implementations§
Source§impl<T> AsRef<AccountView> for Interface<'_, T>
impl<T> AsRef<AccountView> for Interface<'_, T>
Source§fn as_ref(&self) -> &AccountView
fn as_ref(&self) -> &AccountView
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a, T> From<Interface<'a, T>> for &'a AccountView
impl<'a, T> From<Interface<'a, T>> for &'a AccountView
Source§impl<'a, T> FromAccountInfo<'a> for Interface<'a, T>where
T: ProgramIds,
impl<'a, T> FromAccountInfo<'a> for Interface<'a, T>where
T: ProgramIds,
fn try_from_info(info: &'a AccountView) -> Result<Self, Error>
Source§impl<T> ReadableAccount for Interface<'_, T>
impl<T> ReadableAccount for Interface<'_, T>
type DataUnchecked = [u8]
type Data<'a> = Ref<'a, [u8]> where Self: 'a
fn data<'a>(&'a self) -> Result<Self::Data<'a>, Error>
fn data_unchecked(&self) -> Result<&Self::DataUnchecked, Error>
fn address(&self) -> &Address
fn owned_by(&self, owner: &Address) -> bool
fn lamports(&self) -> u64
Auto Trait Implementations§
impl<'a, T> Freeze for Interface<'a, T>
impl<'a, T> RefUnwindSafe for Interface<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for Interface<'a, T>
impl<'a, T> !Sync for Interface<'a, T>
impl<'a, T> Unpin for Interface<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for Interface<'a, T>
impl<'a, T> UnwindSafe for Interface<'a, T>where
T: UnwindSafe,
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