api_impl::storage

Function get_next_persistent_object

Source
pub fn get_next_persistent_object<'a>(
    enumerator: ObjectEnumHandle,
    id_buffer: &'a mut [u8],
) -> Result<(ObjectInfo, &'a [u8])>
Expand description

Returns the info and ID associated with the next object in the enumeration, advancing it in the process. The returns object ID is backed by the provided buffer.

Returns Error::ItemNotFound if there are no more objects left to enumerate.

Panics if enumerator is not a valid handle.