pub struct CustomClockConfig {
pub rate_adjust: Option<i32>,
pub offset: Option<i32>,
/* private fields */
}
Fields§
§rate_adjust: Option<i32>
Frequency rate adjustment to a clone of the system monotonic clock, in parts per million relative to the system monotonic rate.
Must fall within [ZX_CLOCK_UPDATE_MIN_RATE_ADJUST, ZX_CLOCK_UPDATE_MAX_RATE_ADJUST].
For more info, see zx_clock_update
.
Optional. If not specified, the reference clock’s default rate is used.
offset: Option<i32>
Starting delta between the reference clock passed to AudioRenderer or Capturer and the system monotonic clock.
Optional. If not specified, the reference clock offset is unchanged.
Trait Implementations§
Source§impl Clone for CustomClockConfig
impl Clone for CustomClockConfig
Source§fn clone(&self) -> CustomClockConfig
fn clone(&self) -> CustomClockConfig
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 CustomClockConfig
impl Debug for CustomClockConfig
Source§impl<D: ResourceDialect> Decode<CustomClockConfig, D> for CustomClockConfig
impl<D: ResourceDialect> Decode<CustomClockConfig, D> for CustomClockConfig
Source§impl Default for CustomClockConfig
impl Default for CustomClockConfig
Source§fn default() -> CustomClockConfig
fn default() -> CustomClockConfig
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<CustomClockConfig, D> for &CustomClockConfig
impl<D: ResourceDialect> Encode<CustomClockConfig, D> for &CustomClockConfig
Source§impl PartialEq for CustomClockConfig
impl PartialEq for CustomClockConfig
Source§impl TypeMarker for CustomClockConfig
impl TypeMarker for CustomClockConfig
Source§type Owned = CustomClockConfig
type Owned = CustomClockConfig
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 CustomClockConfig
impl ValueTypeMarker for CustomClockConfig
Source§type Borrowed<'a> = &'a CustomClockConfig
type Borrowed<'a> = &'a CustomClockConfig
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 CustomClockConfig
impl StructuralPartialEq for CustomClockConfig
Auto Trait Implementations§
impl Freeze for CustomClockConfig
impl RefUnwindSafe for CustomClockConfig
impl Send for CustomClockConfig
impl Sync for CustomClockConfig
impl Unpin for CustomClockConfig
impl UnwindSafe for CustomClockConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)