pub struct SystemInstruction;Implementations§
Source§impl SystemInstruction
impl SystemInstruction
pub fn createAccount( from: &Address, to: &Address, lamports: u64, space: u64, owner: &Address, ) -> Instruction
pub fn createAccountWithSeed( from: &Address, to: &Address, base: &Address, seed: &str, lamports: u64, space: u64, owner: &Address, ) -> Instruction
pub fn assign(address: &Address, owner: &Address) -> Instruction
pub fn assignWithSeed( address: &Address, base: &Address, seed: &str, owner: &Address, ) -> Instruction
pub fn transfer(from: &Address, to: &Address, lamports: u64) -> Instruction
pub fn transferWithSeed( from: &Address, from_base: &Address, from_seed: String, from_owner: &Address, to: &Address, lamports: u64, ) -> Instruction
pub fn allocate(address: &Address, space: u64) -> Instruction
pub fn allocateWithSeed( address: &Address, base: &Address, seed: &str, space: u64, owner: &Address, ) -> Instruction
pub fn createNonceAccount( from: &Address, nonce: &Address, authority: &Address, lamports: u64, ) -> Array
pub fn advanceNonceAccount(nonce: &Address, authorized: &Address) -> Instruction
pub fn withdrawNonceAccount( nonce: &Address, authorized: &Address, to: &Address, lamports: u64, ) -> Instruction
Trait Implementations§
Source§impl From<SystemInstruction> for JsValue
impl From<SystemInstruction> for JsValue
Source§fn from(value: SystemInstruction) -> Self
fn from(value: SystemInstruction) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SystemInstruction
impl FromWasmAbi for SystemInstruction
Source§impl IntoWasmAbi for SystemInstruction
impl IntoWasmAbi for SystemInstruction
Source§impl RefFromWasmAbi for SystemInstruction
impl RefFromWasmAbi for SystemInstruction
Source§type Anchor = RcRef<SystemInstruction>
type Anchor = RcRef<SystemInstruction>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl TryFromJsValue for SystemInstruction
impl TryFromJsValue for SystemInstruction
Source§impl VectorFromWasmAbi for SystemInstruction
impl VectorFromWasmAbi for SystemInstruction
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SystemInstruction]>
Source§impl VectorIntoJsValue for SystemInstruction
impl VectorIntoJsValue for SystemInstruction
fn vector_into_jsvalue(vector: Box<[SystemInstruction]>) -> JsValue
Source§impl VectorIntoWasmAbi for SystemInstruction
impl VectorIntoWasmAbi for SystemInstruction
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SystemInstruction]>) -> Self::Abi
Source§impl WasmDescribeVector for SystemInstruction
impl WasmDescribeVector for SystemInstruction
impl SupportsConstructor for SystemInstruction
impl SupportsInstanceProperty for SystemInstruction
impl SupportsStaticProperty for SystemInstruction
Auto Trait Implementations§
impl Freeze for SystemInstruction
impl RefUnwindSafe for SystemInstruction
impl Send for SystemInstruction
impl Sync for SystemInstruction
impl Unpin for SystemInstruction
impl UnwindSafe for SystemInstruction
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.