Function adopt_fetched
pub fn adopt_fetched(
store: &Rc<dyn DurableStore>,
package: &str,
room: &str,
id: &RecordId,
bytes: &[u8],
) -> Result<RecordCheckout, TransferError>Expand description
Verify bytes another device sent as record id of room, and keep it
here: installed when new, merged when this device already holds it. The
bytes are only trusted as far as they prove to be that live record.
ยงErrors
Bytes that are not a live record id scoped to room, or storage failure.