pub struct SystemStaking;Expand description
Implementation of the staking function for the aptos system.
Implementations§
Source§impl SystemStaking
impl SystemStaking
Sourcepub async fn stake(
client: Arc<Aptos>,
wallet: Arc<Wallet>,
amount: u64,
) -> Result<Value, String>
pub async fn stake( client: Arc<Aptos>, wallet: Arc<Wallet>, amount: u64, ) -> Result<Value, String>
stake $apt
Sourcepub async fn unstake(
client: Arc<Aptos>,
wallet: Arc<Wallet>,
amount: u64,
) -> Result<Value, String>
pub async fn unstake( client: Arc<Aptos>, wallet: Arc<Wallet>, amount: u64, ) -> Result<Value, String>
unstake
Auto Trait Implementations§
impl Freeze for SystemStaking
impl RefUnwindSafe for SystemStaking
impl Send for SystemStaking
impl Sync for SystemStaking
impl Unpin for SystemStaking
impl UnwindSafe for SystemStaking
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more