pub struct DictionaryDrainIteratorSynchronousProxy { /* private fields */ }
Implementations§
source§impl DictionaryDrainIteratorSynchronousProxy
impl DictionaryDrainIteratorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<DictionaryDrainIteratorEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<DictionaryDrainIteratorEvent, 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<DictionaryDrainIteratorGetNextResult, Error>
pub fn get_next( &self, start_id: u64, limit: u32, ___deadline: MonotonicInstant, ) -> Result<DictionaryDrainIteratorGetNextResult, Error>
Returns the next batch of results for a [Dictionary.Drain] call, returning up to
limit
results. limit
can be at most MAX_DICTIONARY_ITERATOR_CHUNK.
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 DictionaryDrainIteratorSynchronousProxy
impl SynchronousProxy for DictionaryDrainIteratorSynchronousProxy
§type Proxy = DictionaryDrainIteratorProxy
type Proxy = DictionaryDrainIteratorProxy
The async proxy for the same protocol.
§type Protocol = DictionaryDrainIteratorMarker
type Protocol = DictionaryDrainIteratorMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for DictionaryDrainIteratorSynchronousProxy
impl RefUnwindSafe for DictionaryDrainIteratorSynchronousProxy
impl Send for DictionaryDrainIteratorSynchronousProxy
impl Sync for DictionaryDrainIteratorSynchronousProxy
impl Unpin for DictionaryDrainIteratorSynchronousProxy
impl UnwindSafe for DictionaryDrainIteratorSynchronousProxy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more