pub struct EnvOps;Expand description
EnvOps
Implementations§
Source§impl EnvOps
impl EnvOps
pub fn import(env: EnvData)
pub fn set_canister_type(ty: CanisterRole)
pub fn set_root_pid(pid: Principal)
pub fn set_prime_root_pid(pid: Principal)
pub fn set_subnet_pid(pid: Principal)
pub fn set_subnet_type(ty: SubnetRole)
pub fn is_root() -> bool
pub fn is_prime_root() -> bool
pub fn try_get_subnet_type() -> Result<SubnetRole, Error>
pub fn try_get_canister_type() -> Result<CanisterRole, Error>
pub fn try_get_subnet_pid() -> Result<Principal, Error>
pub fn try_get_root_pid() -> Result<Principal, Error>
pub fn try_get_prime_root_pid() -> Result<Principal, Error>
pub fn try_get_parent_pid() -> Result<Principal, Error>
Auto Trait Implementations§
impl Freeze for EnvOps
impl RefUnwindSafe for EnvOps
impl Send for EnvOps
impl Sync for EnvOps
impl Unpin for EnvOps
impl UnwindSafe for EnvOps
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