pub struct CanisterPoolStorageOps;Expand description
CanisterPoolStorageOps Stable storage wrapper for the canister pool registry.
Implementations§
Source§impl CanisterPoolStorageOps
impl CanisterPoolStorageOps
pub fn register( pid: Principal, cycles: Cycles, status: CanisterPoolStatus, role: Option<CanisterRole>, parent: Option<Principal>, module_hash: Option<Vec<u8>>, )
pub fn get(pid: Principal) -> Option<CanisterPoolEntry>
pub fn update(pid: Principal, entry: CanisterPoolEntry) -> bool
pub fn pop_ready() -> Option<(Principal, CanisterPoolEntry)>
pub fn contains(pid: &Principal) -> bool
pub fn take(pid: &Principal) -> Option<CanisterPoolEntry>
pub fn export() -> CanisterPoolView
pub fn len() -> u64
Auto Trait Implementations§
impl Freeze for CanisterPoolStorageOps
impl RefUnwindSafe for CanisterPoolStorageOps
impl Send for CanisterPoolStorageOps
impl Sync for CanisterPoolStorageOps
impl Unpin for CanisterPoolStorageOps
impl UnwindSafe for CanisterPoolStorageOps
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