pub struct DictionaryEnumerateIteratorSynchronousProxy { /* private fields */ }
Implementations§
Source§impl DictionaryEnumerateIteratorSynchronousProxy
impl DictionaryEnumerateIteratorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DictionaryEnumerateIteratorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DictionaryEnumerateIteratorEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn get_next(
&self,
start_id: u64,
limit: u32,
___deadline: MonotonicInstant,
) -> Result<DictionaryEnumerateIteratorGetNextResult, Error>
pub fn get_next( &self, start_id: u64, limit: u32, ___deadline: MonotonicInstant, ) -> Result<DictionaryEnumerateIteratorGetNextResult, Error>
Returns the next batch of results for a [Dictionary.Enumerate] call, returning up to
limit
results. limit
can be at most MAX_DICTIONARY_ITERATOR_CHUNK.
The value of each of items
is a duplicate of the original capability
([CapabilityStore.Duplicate]), unless it could not be duplicated, it which case it will
be null.
Each returned capability will be assigned a monotonically increasing CapabilityId starting
from start_id
.
In addition to the items
, returns end_id
, which is one more than the highest id reserved
by [GetNext]. end_id
can be used as the start_id
for the next call to [GetNext].
If [GetNext] returns an error, the server will also close the channel.
Errors:
ID_ALREADY_EXISTS
if some id in the range[start_id, limit)
already exists in this store.INVALID_ARGS
iflimit
was0
or greater thanMAX_DICTIONARY_ITERATOR_CHUNK
.
Trait Implementations§
Source§impl SynchronousProxy for DictionaryEnumerateIteratorSynchronousProxy
impl SynchronousProxy for DictionaryEnumerateIteratorSynchronousProxy
Source§type Proxy = DictionaryEnumerateIteratorProxy
type Proxy = DictionaryEnumerateIteratorProxy
Source§type Protocol = DictionaryEnumerateIteratorMarker
type Protocol = DictionaryEnumerateIteratorMarker
Proxy
controls.