pub struct ArchiveAccessorSynchronousProxy { /* private fields */ }
Implementations§
source§impl ArchiveAccessorSynchronousProxy
impl ArchiveAccessorSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ArchiveAccessorEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ArchiveAccessorEvent, 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 stream_diagnostics(
&self,
stream_parameters: StreamParameters,
result_stream: ServerEnd<BatchIteratorMarker>
) -> Result<(), Error>
pub fn stream_diagnostics( &self, stream_parameters: StreamParameters, result_stream: ServerEnd<BatchIteratorMarker> ) -> Result<(), Error>
Creates an iterator over diagnostics data on the system.
- The iterator may be finite by streaming in SNAPSHOT mode, serving only the current state of diagnostics data on the system.
- The iterator may be infinite by streaming in either SNAPSHOT_THEN_SUBSCRIBE or SUBSCRIBE mode; the prior first provides iteration over the current state of the sytem, and then both provide ongoing iteration over newly arriving diagnostics data.
-
request
result stream
a [fuchsia.diagnostics/BatchIterator] that diagnostic records are exposed to the client over.- epitaphs:
- INVALID_ARGS: A required argument in the StreamParameters struct was missing.
- WRONG_TYPE: A selector provided by the StreamParameters struct was incorrectly formatted.
- epitaphs:
-
request
stream_parameters
is a [fuchsia.diagnostics/StreamParameter] which specifies how to configure the stream.