pub enum ArchiveAccessorRequest {
StreamDiagnostics {
stream_parameters: StreamParameters,
result_stream: ServerEnd<BatchIteratorMarker>,
control_handle: ArchiveAccessorControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: ArchiveAccessorControlHandle,
method_type: MethodType,
},
}
Expand description
Outer protocol for interacting with the different diagnostics data sources.
Variants§
StreamDiagnostics
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.
Fields
§
stream_parameters: StreamParameters
§
result_stream: ServerEnd<BatchIteratorMarker>
§
control_handle: ArchiveAccessorControlHandle
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: ArchiveAccessorControlHandle
§
method_type: MethodType
Implementations§
Source§impl ArchiveAccessorRequest
impl ArchiveAccessorRequest
pub fn into_stream_diagnostics( self, ) -> Option<(StreamParameters, ServerEnd<BatchIteratorMarker>, ArchiveAccessorControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArchiveAccessorRequest
impl !RefUnwindSafe for ArchiveAccessorRequest
impl Send for ArchiveAccessorRequest
impl Sync for ArchiveAccessorRequest
impl Unpin for ArchiveAccessorRequest
impl !UnwindSafe for ArchiveAccessorRequest
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
Mutably borrows from an owned value. Read more