[][src]Function holochain_core::dht::actions::add_link::add_link

pub fn add_link(link: &Link, context: &Arc<Context>) -> AddLinkFuture

AddLink Action Creator This action creator dispatches an AddLink action which is consumed by the DHT reducer. Note that this function does not include any validation checks for the link. The DHT reducer does make sure that it only adds links to a base that it has in its local storage and will return an error that the AddLinkFuture resolves to if that is not the case.

Returns a future that resolves to an Ok(()) or an Err(HolochainError).