Struct EgoCanister

Source
pub struct EgoCanister {}

Implementations§

Source§

impl EgoCanister

Source

pub fn new() -> Self

Trait Implementations§

Source§

impl Clone for EgoCanister

Source§

fn clone(&self) -> EgoCanister

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl TEgoCanister for EgoCanister

Source§

fn ego_owner_set( &self, target_canister_id: Principal, principals: Vec<Principal>, )

Source§

fn ego_owner_add(&self, target_canister_id: Principal, principal: Principal)

Source§

fn ego_owner_remove(&self, target_canister_id: Principal, principal: Principal)

Source§

fn ego_owner_list<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<Principal, String>>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_user_set(&self, target_canister_id: Principal, user_ids: Vec<Principal>)

Source§

fn ego_user_add(&self, target_canister_id: Principal, principal: Principal)

Source§

fn ego_user_remove(&self, target_canister_id: Principal, principal: Principal)

Source§

fn ego_user_list<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<Principal, String>>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_op_add(&self, target_canister_id: Principal, user_id: Principal)

Source§

fn ego_op_remove(&self, target_canister_id: Principal, principal: Principal)

Source§

fn ego_op_list<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<Option<BTreeMap<Principal, String>>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_canister_add( &self, target_canister_id: Principal, name: String, principal: Principal, )

Source§

fn ego_canister_remove( &self, target_canister_id: Principal, name: String, principal: Principal, )

Source§

fn ego_canister_list<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, Vec<Principal>>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_controller_set<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, principals: Vec<Principal>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_controller_add<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, principal: Principal, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_controller_remove( &self, target_canister_id: Principal, principal: Principal, )

Source§

fn balance_get<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<u128, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_app_info_update( &self, target_canister_id: Principal, wallet_id: Option<Principal>, app_id: AppId, version: Version, )

Source§

fn ego_app_info_get<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<AppInfo, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_app_version_check<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<App, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_canister_upgrade(&self, target_canister_id: Principal)

Source§

fn ego_canister_delete(&self, target_canister_id: Principal)

Source§

fn ego_canister_track(&self, target_canister_id: Principal)

Source§

fn ego_canister_untrack(&self, target_canister_id: Principal)

Source§

fn ego_cycle_check(&self, target_canister_id: Principal)

Source§

fn ego_cycle_history<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<Vec<CycleRecord>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_cycle_info<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<CycleInfo, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_cycle_estimate_set(&self, target_canister_id: Principal, estimate: u64)

Source§

fn ego_cycle_threshold_get<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<u128, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_runtime_cycle_threshold_get<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<u128, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_cycle_recharge<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, cycles: u128, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ego_log_list<'life0, 'async_trait>( &'life0 self, target_canister_id: Principal, amount: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<LogEntry>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl Copy for EgoCanister

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.