pub struct SamplingConfig {
pub period: Option<u64>,
pub timebase: Option<Counter>,
pub sample: Option<Sample>,
/* private fields */
}
Expand description
Profiling information about the profile itself
Fields§
§period: Option<u64>
How many ticks of the counter should occur between each sample
timebase: Option<Counter>
The counter to the rate on
sample: Option<Sample>
What information the profiler will write when it takes a sample.
Trait Implementations§
Source§impl Clone for SamplingConfig
impl Clone for SamplingConfig
Source§fn clone(&self) -> SamplingConfig
fn clone(&self) -> SamplingConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SamplingConfig
impl Debug for SamplingConfig
Source§impl<D: ResourceDialect> Decode<SamplingConfig, D> for SamplingConfig
impl<D: ResourceDialect> Decode<SamplingConfig, D> for SamplingConfig
Source§impl Default for SamplingConfig
impl Default for SamplingConfig
Source§fn default() -> SamplingConfig
fn default() -> SamplingConfig
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<SamplingConfig, D> for &SamplingConfig
impl<D: ResourceDialect> Encode<SamplingConfig, D> for &SamplingConfig
Source§impl PartialEq for SamplingConfig
impl PartialEq for SamplingConfig
Source§impl TypeMarker for SamplingConfig
impl TypeMarker for SamplingConfig
Source§type Owned = SamplingConfig
type Owned = SamplingConfig
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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.Source§impl ValueTypeMarker for SamplingConfig
impl ValueTypeMarker for SamplingConfig
Source§type Borrowed<'a> = &'a SamplingConfig
type Borrowed<'a> = &'a SamplingConfig
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for SamplingConfig
impl StructuralPartialEq for SamplingConfig
Auto Trait Implementations§
impl Freeze for SamplingConfig
impl RefUnwindSafe for SamplingConfig
impl Send for SamplingConfig
impl Sync for SamplingConfig
impl Unpin for SamplingConfig
impl UnwindSafe for SamplingConfig
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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