pub struct BatchIteratorProxy { /* private fields */ }
Implementations§
Source§impl BatchIteratorProxy
impl BatchIteratorProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.diagnostics/BatchIterator.
Sourcepub fn take_event_stream(&self) -> BatchIteratorEventStream
pub fn take_event_stream(&self) -> BatchIteratorEventStream
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,
) -> QueryResponseFut<BatchIteratorGetNextResult, DefaultFuchsiaResourceDialect>
pub fn get_next( &self, ) -> QueryResponseFut<BatchIteratorGetNextResult, DefaultFuchsiaResourceDialect>
Returns a vector of [fuchsia.diagnostics/FormattedContent] structs with a format dictated by the format_settings argument provided to the Reader protocol which spawned this BatchIterator.
An empty vector implies that the data hierarchy has been fully iterated, and subsequent GetNext calls will always return the empty vector.
When the BatchIterator is serving results via subscription model, calls to GetNext will hang until there is new data available, it will not return an empty vector.
- returns a vector of FormattedContent structs. Clients connected to a Batch are expected to call GetNext() until an empty vector is returned, denoting that the entire data hierarchy has been read.
- error a [fuchsia.diagnostics/ReaderError]
value indicating that there was an issue reading the underlying data hierarchies
or formatting those hierarchies to populate the
batch
. Note, these issues do not include a single component’s data hierarchy failing to be read. The iterator is tolerant of individual component data sources failing to be read, whether that failure is a timeout or a malformed binary file. In the event that a GetNext call fails, that subset of the data hierarchy results is dropped, but future calls to GetNext will provide new subsets of FormattedDataHierarchies.
Sourcepub fn wait_for_ready(
&self,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn wait_for_ready( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
Indiciates that the BatchIterator has been connected. If the BatchIterator hasn’t been connected, this method will hang until it is.
Trait Implementations§
Source§impl BatchIteratorProxyInterface for BatchIteratorProxy
impl BatchIteratorProxyInterface for BatchIteratorProxy
type GetNextResponseFut = QueryResponseFut<Result<Vec<FormattedContent>, ReaderError>>
type WaitForReadyResponseFut = QueryResponseFut<()>
fn get_next(&self) -> Self::GetNextResponseFut
fn wait_for_ready(&self) -> Self::WaitForReadyResponseFut
Source§impl Clone for BatchIteratorProxy
impl Clone for BatchIteratorProxy
Source§fn clone(&self) -> BatchIteratorProxy
fn clone(&self) -> BatchIteratorProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BatchIteratorProxy
impl Debug for BatchIteratorProxy
Source§impl Proxy for BatchIteratorProxy
impl Proxy for BatchIteratorProxy
Source§type Protocol = BatchIteratorMarker
type Protocol = BatchIteratorMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for BatchIteratorProxy
impl !RefUnwindSafe for BatchIteratorProxy
impl Send for BatchIteratorProxy
impl Sync for BatchIteratorProxy
impl Unpin for BatchIteratorProxy
impl !UnwindSafe for BatchIteratorProxy
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)