pub enum DictionaryDrainIteratorRequest {
GetNext {
start_id: u64,
limit: u32,
responder: DictionaryDrainIteratorGetNextResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: DictionaryDrainIteratorControlHandle,
method_type: MethodType,
},
}
Variants§
GetNext
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
.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: DictionaryDrainIteratorControlHandle
§
method_type: MethodType
Implementations§
source§impl DictionaryDrainIteratorRequest
impl DictionaryDrainIteratorRequest
pub fn into_get_next( self, ) -> Option<(u64, u32, DictionaryDrainIteratorGetNextResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DictionaryDrainIteratorRequest
impl !RefUnwindSafe for DictionaryDrainIteratorRequest
impl Send for DictionaryDrainIteratorRequest
impl Sync for DictionaryDrainIteratorRequest
impl Unpin for DictionaryDrainIteratorRequest
impl !UnwindSafe for DictionaryDrainIteratorRequest
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