Skip to main content

ArchiveAccessorLocalServerHandler

Trait ArchiveAccessorLocalServerHandler 

Source
pub trait ArchiveAccessorLocalServerHandler<___T: Transport = Channel> {
    // Required methods
    fn stream_diagnostics(
        &mut self,
        request: Request<StreamDiagnostics, ___T>,
    ) -> impl Future<Output = ()>;
    fn wait_for_ready(
        &mut self,
        responder: Responder<WaitForReady, ___T>,
    ) -> impl Future<Output = ()>;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
Expand description

A server handler for the ArchiveAccessor protocol.

See ArchiveAccessor for more details.

Required Methods§

Source

fn stream_diagnostics( &mut self, request: Request<StreamDiagnostics, ___T>, ) -> impl Future<Output = ()>

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.
  • request stream_parameters is a [fuchsia.diagnostics/StreamParameter] which specifies how to configure the stream.

Source

fn wait_for_ready( &mut self, responder: Responder<WaitForReady, ___T>, ) -> impl Future<Output = ()>

Ensures that the connection with the server was established to prevent races when using other pipelined methods of this protocol.

Provided Methods§

Source

fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<___H, ___T> ArchiveAccessorLocalServerHandler<___T> for Local<___H>
where ___H: ArchiveAccessorServerHandler<___T>, ___T: Transport,

Source§

async fn stream_diagnostics( &mut self, request: Request<StreamDiagnostics, ___T>, )

Source§

async fn wait_for_ready(&mut self, responder: Responder<WaitForReady, ___T>)

Source§

async fn on_unknown_interaction(&mut self, ordinal: u64)

Implementors§