api_impl::storage

Function rename_persistent_object

Source
pub fn rename_persistent_object(object: ObjectHandle, new_id: &[u8]) -> Result
Expand description

Renames the object’s, associating it with a new identifier.

Returns Error::AccessConflict if new_id is the ID of an existing object.

Panics if object is invalid or was not opened with DATA_ACCESS_WRITE_META.