pub struct StreamParameters {
pub data_type: Option<DataType>,
pub stream_mode: Option<StreamMode>,
pub format: Option<Format>,
pub client_selector_configuration: Option<ClientSelectorConfiguration>,
pub batch_retrieval_timeout_seconds: Option<i64>,
pub performance_configuration: Option<PerformanceConfiguration>,
/* private fields */
}
Expand description
Parameters needed to configure a stream of diagnostics information.
Fields§
§data_type: Option<DataType>
A [fuchsia.diagnostics/DataType] that specifies the diagnostics data type to stream to the client. NOTE: REQUIRED
stream_mode: Option<StreamMode>
A [fuchsia.diagnostics/StreamMode] that specifies how the streaming server provides streamed results. NOTE: REQUIRED
format: Option<Format>
A [fuchsia.diagnostics/Format] that specifies how to format the returned diagnostics data. NOTE: REQUIRED
client_selector_configuration: Option<ClientSelectorConfiguration>
Configuration specifying what results the client wants returned from their connection. The client can request a specific subset of data using a vector of provided selectors, or can specify that they want all available data. NOTE: REQUIRED
batch_retrieval_timeout_seconds: Option<i64>
Configuration specifying max number of seconds to wait for a single component to have its diagnostics data “pumped”. This value can used for testing or if you know the component you are interested is in under heavy load. If not provided, then PER_COMPONENT_ASYNC_TIMEOUT_SECONDS as defined in https://fuchsia.googlesource.com/fuchsia/+/refs/heads/master/src/diagnostics/archivist/src/constants.rs will be used. NOTE: OPTIONAL
performance_configuration: Option<PerformanceConfiguration>
Parameters which configure a diagnostics stream’s performance properties. NOTE: OPTIONAL
Implementations§
Trait Implementations§
source§impl Clone for StreamParameters
impl Clone for StreamParameters
source§fn clone(&self) -> StreamParameters
fn clone(&self) -> StreamParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StreamParameters
impl Debug for StreamParameters
source§impl Decodable for StreamParameters
impl Decodable for StreamParameters
source§fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
fn decode(&mut self, decoder: &mut Decoder<'_>, offset: usize) -> Result<()>
self
.
Callers must ensure that offset
is a multiple of
Layout::inline_align
, and that decoder.buf
has room for reading
Layout::inline_size
bytes at offset
. Read moresource§impl Encodable for StreamParameters
impl Encodable for StreamParameters
source§fn encode(
&mut self,
encoder: &mut Encoder<'_, '_>,
offset: usize,
recursion_depth: usize
) -> Result<()>
fn encode( &mut self, encoder: &mut Encoder<'_, '_>, offset: usize, recursion_depth: usize ) -> Result<()>
Handle::INVALID
. Callers must ensure that offset
is a
multiple of Layout::inline_align
, and that encoder.buf
has room for
writing Layout::inline_size
bytes at offset
. Read moresource§impl Layout for StreamParameters
impl Layout for StreamParameters
source§fn inline_align(_context: &Context) -> usize
fn inline_align(_context: &Context) -> usize
source§fn inline_size(_context: &Context) -> usize
fn inline_size(_context: &Context) -> usize
inline_align
.§fn supports_simple_copy() -> boolwhere
Self: Sized,
fn supports_simple_copy() -> boolwhere Self: Sized,
source§impl PartialEq<StreamParameters> for StreamParameters
impl PartialEq<StreamParameters> for StreamParameters
source§fn eq(&self, other: &StreamParameters) -> bool
fn eq(&self, other: &StreamParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl Persistable for StreamParameters
impl StructuralPartialEq for StreamParameters
impl TopLevel for StreamParameters
Auto Trait Implementations§
impl RefUnwindSafe for StreamParameters
impl Send for StreamParameters
impl Sync for StreamParameters
impl Unpin for StreamParameters
impl UnwindSafe for StreamParameters
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutObject for Twhere
T: Layout,
impl<T> LayoutObject for Twhere T: Layout,
§fn inline_align(&self, context: &Context) -> usize
fn inline_align(&self, context: &Context) -> usize
Layout::inline_align
.§fn inline_size(&self, context: &Context) -> usize
fn inline_size(&self, context: &Context) -> usize
Layout::inline_size
.