pub struct Canister { /* private fields */ }Expand description
Canister
Implementations§
Source§impl Canister
impl Canister
pub const fn new( def: Def, memory_namespace: &'static str, memory_min: u8, memory_max: u8, commit_memory_id: u8, ) -> Self
pub const fn def(&self) -> &Def
pub const fn memory_namespace(&self) -> &'static str
pub const fn memory_min(&self) -> u8
pub const fn memory_max(&self) -> u8
pub const fn commit_memory_id(&self) -> u8
pub fn commit_stable_key(&self) -> String
Trait Implementations§
Source§impl CandidType for Canister
impl CandidType for Canister
Auto Trait Implementations§
impl Freeze for Canister
impl RefUnwindSafe for Canister
impl Send for Canister
impl Sync for Canister
impl Unpin for Canister
impl UnsafeUnpin for Canister
impl UnwindSafe for Canister
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