pub struct PoolOps;Expand description
PoolOps Stable storage wrapper for the canister pool registry.
This module contains storage operations:
- register entries
- mutate existing entry state (without reordering)
- export and basic lookups
Implementations§
Source§impl PoolOps
impl PoolOps
pub fn register_ready( pid: Principal, cycles: Cycles, role: Option<CanisterRole>, parent: Option<Principal>, module_hash: Option<Vec<u8>>, )
pub fn mark_pending_reset(pid: Principal)
pub fn mark_ready(pid: Principal, cycles: Cycles)
pub fn mark_failed(pid: Principal, err: &Error)
pub fn get_view(pid: Principal) -> Option<CanisterPoolEntryView>
pub fn export() -> Vec<(Principal, CanisterPoolEntry)>
pub fn export_view() -> CanisterPoolView
pub fn contains(pid: &Principal) -> bool
pub fn len() -> u64
Auto Trait Implementations§
impl Freeze for PoolOps
impl RefUnwindSafe for PoolOps
impl Send for PoolOps
impl Sync for PoolOps
impl Unpin for PoolOps
impl UnwindSafe for PoolOps
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