pub struct Iterator;Expand description
The type corresponding to the Iterator protocol.
An iterator for the key-value store. Note that this protocol makes no guarantee of atomicity -
the values may change between pulls from the iterator. Unlike the Store protocol above, this
protocol is not @discoverable: it is not independently published by the component that
implements it, but rather must have one of its two protocol ends transmitted over an existing
FIDL connection.
As is often the case with iterators, the client indicates that they are done with an instance of the iterator by simply closing their end of the connection.
Since the iterator is associated only with the Iterate method, it is declared as closed rather than open. This is because changes to how iteration works are more likely to require replacing the Iterate method completely (which is fine because that method is flexible) rather than evolving the Iterator protocol.
Trait Implementations§
Source§impl ClientCompatFrom<IteratorProxy> for Iterator
Available on Fuchsia only.
impl ClientCompatFrom<IteratorProxy> for Iterator
Source§fn client_compat_from(proxy: IteratorProxy) -> ClientDispatcher<Self, Channel>
fn client_compat_from(proxy: IteratorProxy) -> ClientDispatcher<Self, Channel>
proxy into a Client for this protocol.Source§impl CompatFrom<Iterator> for IteratorMarker
impl CompatFrom<Iterator> for IteratorMarker
Source§fn compat_from(_: Iterator) -> Self
fn compat_from(_: Iterator) -> Self
value into a value of this type.Source§impl CompatFrom<IteratorMarker> for Iterator
impl CompatFrom<IteratorMarker> for Iterator
Source§fn compat_from(_: IteratorMarker) -> Self
fn compat_from(_: IteratorMarker) -> Self
value into a value of this type.Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for Iteratorwhere
___H: IteratorClientHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for Iteratorwhere
___H: IteratorClientHandler<___T> + Send,
___T: Transport,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for Iteratorwhere
___H: IteratorServerHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for Iteratorwhere
___H: IteratorServerHandler<___T> + Send,
___T: Transport,
impl StructuralPartialEq for Iterator
Auto Trait Implementations§
impl Freeze for Iterator
impl RefUnwindSafe for Iterator
impl Send for Iterator
impl Sync for Iterator
impl Unpin for Iterator
impl UnsafeUnpin for Iterator
impl UnwindSafe for Iterator
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, 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]