pub struct DictionaryEnumerateIteratorProxy { /* private fields */ }
Implementations§
Source§impl DictionaryEnumerateIteratorProxy
impl DictionaryEnumerateIteratorProxy
Sourcepub fn new(channel: Channel) -> Self
pub fn new(channel: Channel) -> Self
Create a new Proxy for fuchsia.component.sandbox/DictionaryEnumerateIterator.
Sourcepub fn take_event_stream(&self) -> DictionaryEnumerateIteratorEventStream
pub fn take_event_stream(&self) -> DictionaryEnumerateIteratorEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn get_next(
&self,
start_id: u64,
limit: u32,
) -> QueryResponseFut<DictionaryEnumerateIteratorGetNextResult, FDomainResourceDialect>
pub fn get_next( &self, start_id: u64, limit: u32, ) -> QueryResponseFut<DictionaryEnumerateIteratorGetNextResult, FDomainResourceDialect>
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 Clone for DictionaryEnumerateIteratorProxy
impl Clone for DictionaryEnumerateIteratorProxy
Source§fn clone(&self) -> DictionaryEnumerateIteratorProxy
fn clone(&self) -> DictionaryEnumerateIteratorProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl DictionaryEnumerateIteratorProxyInterface for DictionaryEnumerateIteratorProxy
impl DictionaryEnumerateIteratorProxyInterface for DictionaryEnumerateIteratorProxy
type GetNextResponseFut = QueryResponseFut<Result<(Vec<DictionaryOptionalItem>, u64), CapabilityStoreError>, FDomainResourceDialect>
fn get_next(&self, start_id: u64, limit: u32) -> Self::GetNextResponseFut
Source§impl Proxy for DictionaryEnumerateIteratorProxy
impl Proxy for DictionaryEnumerateIteratorProxy
Source§type Protocol = DictionaryEnumerateIteratorMarker
type Protocol = DictionaryEnumerateIteratorMarker
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Source§fn into_channel(self) -> Result<Channel, Self>
fn into_channel(self) -> Result<Channel, Self>
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Auto Trait Implementations§
impl Freeze for DictionaryEnumerateIteratorProxy
impl !RefUnwindSafe for DictionaryEnumerateIteratorProxy
impl Send for DictionaryEnumerateIteratorProxy
impl Sync for DictionaryEnumerateIteratorProxy
impl Unpin for DictionaryEnumerateIteratorProxy
impl !UnwindSafe for DictionaryEnumerateIteratorProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T
to [Self
]