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.
Trait Implementations§
Source§impl Debug for GetSnapshotParameters
impl Debug for GetSnapshotParameters
Source§impl Decode<GetSnapshotParameters, DefaultFuchsiaResourceDialect> for GetSnapshotParameters
impl Decode<GetSnapshotParameters, DefaultFuchsiaResourceDialect> for GetSnapshotParameters
Source§impl Default for GetSnapshotParameters
impl Default for GetSnapshotParameters
Source§fn default() -> GetSnapshotParameters
fn default() -> GetSnapshotParameters
Source§impl Encode<GetSnapshotParameters, DefaultFuchsiaResourceDialect> for &mut GetSnapshotParameters
impl Encode<GetSnapshotParameters, DefaultFuchsiaResourceDialect> for &mut GetSnapshotParameters
Source§impl PartialEq for GetSnapshotParameters
impl PartialEq for GetSnapshotParameters
Source§impl ResourceTypeMarker for GetSnapshotParameters
impl ResourceTypeMarker for GetSnapshotParameters
Source§type Borrowed<'a> = &'a mut GetSnapshotParameters
type Borrowed<'a> = &'a mut GetSnapshotParameters
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for GetSnapshotParameters
impl TypeMarker for GetSnapshotParameters
Source§type Owned = GetSnapshotParameters
type Owned = 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 encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.