pub struct GetSnapshotParameters {
pub collection_timeout_per_data: Option<i64>,
pub response_channel: Option<Channel>,
/* private fields */
}
Expand description
Parameters for the DataProvider::GetSnapshot() method.
Fields§
§collection_timeout_per_data: Option<i64>
A snapshot aggregates various data from the platform (device uptime, logs, Inspect data, etc.) that are collected in parallel. Internally, each data collection is done within a timeout.
collection_timeout_per_data
allows clients to control how much time is given to each data
collection. It enables clients to get a partial yet valid snapshot under a certain time.
Note that this does not control how much total time the snapshot generation may take,
which is by construction higher than collection_timeout_per_data
, as clients can control
the total time by using a timeout on the call to GetSnapshot() on their side.
response_channel: Option<Channel>
If set, the snapshot archive will be sent as a |fuchsia.io.File| over this channel instead of being set in the |archive| field in the |Snapshot| response. This is typically useful if the client is on the host and does not support VMOs.
Implementations§
Trait Implementations§
source§impl Debug for GetSnapshotParameters
impl Debug for GetSnapshotParameters
source§impl Decodable for GetSnapshotParameters
impl Decodable for GetSnapshotParameters
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 GetSnapshotParameters
impl Encodable for GetSnapshotParameters
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 GetSnapshotParameters
impl Layout for GetSnapshotParameters
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<GetSnapshotParameters> for GetSnapshotParameters
impl PartialEq<GetSnapshotParameters> for GetSnapshotParameters
source§fn eq(&self, other: &GetSnapshotParameters) -> bool
fn eq(&self, other: &GetSnapshotParameters) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetSnapshotParameters
impl TopLevel for GetSnapshotParameters
Auto Trait Implementations§
impl RefUnwindSafe for GetSnapshotParameters
impl Send for GetSnapshotParameters
impl Sync for GetSnapshotParameters
impl Unpin for GetSnapshotParameters
impl UnwindSafe for GetSnapshotParameters
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
.