pub async fn remove_link(
        &self,
        actor_id: &str,
        contract_id: &str,
        link_name: &str,
    ) -> Result<()> {
        let subject = broker::rpc::remove_links(&self.nsprefix);
        let ld = LinkDefinition {
            actor_id: actor_id.to_string(),
            contract_id: contract_id.to_string(),
            link_name: link_name.to_string(),
            ..Default::default()
        };
        let bytes = crate::generated::ctliface::serialize(&ld)?;
        self.nc.publish(&subject, &bytes).await?;

        Ok(())
    }
/// Publishes a request to remove a link definition to the lattice. All hosts in the lattice will
/// receive this message and, if the appropriate capability provider is in that host, it will have
/// the "remove actor" operation sent to it. The link definition will also be removed from the lattice
/// cache. No confirmation or acknowledgement is available for this operation, you will need to monitor events
/// and/or query the lattice to confirm that the link has been removed.
Publishes a request to remove a link definition to the lattice. All hosts in the lattice will
receive this message and, if the appropriate capability provider is in that host, it will have
the "remove actor" operation sent to it. The link definition will also be removed from the lattice
cache. No confirmation or acknowledgement is available for this operation, you will need to monitor events
and/or query the lattice to confirm that the link has been removed.
Publishes a request to remove a link definition to the lattice . All hosts in the lattice will receive this message and if the appropriate capability provider is in that host it will have the " remove actor " operation sent to it . The link definition will also be removed from the lattice cache . No confirmation or acknowledgement is available for this operation you will need to monitor events and / or query the lattice to confirm that the link has been removed .
pub async fn remove_link(
        &self,
        actor_id: &str,
        contract_id: &str,
        link_name: &str,
    ) -> Result<()> {
        let subject = broker::rpc::remove_links(&self.nsprefix);
        let ld = LinkDefinition {
            actor_id: actor_id.to_string(),
            contract_id: contract_id.to_string(),
            link_name: link_name.to_string(),
            ..Default::default()
        };
        let bytes = crate::generated::ctliface::serialize(&ld)?;
        self.nc.publish(&subject, &bytes).await?;
        Ok(())
    }
pub async fn remove_link ( & self , actor_id : & str , contract_id : & str , link_name : & str , ) -> Result < ( ) > { let subject = broker :: rpc :: remove_links ( & self . nsprefix ) ; let ld = LinkDefinition { actor_id : actor_id . to_string ( ) , contract_id : contract_id . to_string ( ) , link_name : link_name . to_string ( ) , .. Default :: default ( ) } ; let bytes = crate :: generated :: ctliface :: serialize ( & ld ) ? ; self . nc . publish ( & subject , & bytes ) . await ? ; Ok ( ( ) ) }
Publishes a request to remove a link definition to the lattice.
Publishes a request to remove a link definition to the lattice .
&self
actor_id
&str
contract_id
&str
link_name
&str
&self
actor_id
&str
contract_id
&str
link_name
&str