pub struct PlacementBindingApi;Expand description
PlacementBindingApi
Implementations§
Source§impl PlacementBindingApi
impl PlacementBindingApi
pub fn lookup_key(pool: &str, key_value: &str) -> Option<Principal>
pub fn lookup_entry( pool: &str, key_value: &str, ) -> Option<PlacementBindingStatusResponse>
pub async fn recover_entry( pool: &str, key_value: impl AsRef<str>, ) -> Result<PlacementBindingRecoveryResponse, Error>
pub async fn resolve_or_create( pool: &str, key_value: impl AsRef<str>, ) -> Result<PlacementBindingStatusResponse, Error>
pub fn bind_instance( pool: &str, key_value: impl AsRef<str>, pid: Principal, ) -> Result<(), Error>
pub fn registry() -> PlacementBindingRegistryResponse
Auto Trait Implementations§
impl Freeze for PlacementBindingApi
impl RefUnwindSafe for PlacementBindingApi
impl Send for PlacementBindingApi
impl Sync for PlacementBindingApi
impl Unpin for PlacementBindingApi
impl UnsafeUnpin for PlacementBindingApi
impl UnwindSafe for PlacementBindingApi
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