pub struct TrustedFlatlandConfig {
pub schedule_asap: Option<bool>,
pub pass_acquire_fences: Option<bool>,
/* private fields */
}
Expand description
All arguments are optional; default values will be provided if they are absent.
By default, the resulting Flatland will behave identically to connecting
to the fuchsia.ui.composition.Flatland
service instead of connecting via the factory.
Fields§
§schedule_asap: Option<bool>
If true, a frame will be scheduled to be presented as soon as all acquire fences are signaled, instead of waiting for other clients to present in the same vsync. This can reduce latency for this client, but may increase power consumption.
If absent, schedule_asap
is false.
pass_acquire_fences: Option<bool>
If true, Scenic should pass acquire fences to the drivers for composition HW, instead of waiting for them on CPU. This can improve performance by reducing CPU overhead.
If absent, pass_acquire_fences
is false.
Trait Implementations§
Source§impl Debug for TrustedFlatlandConfig
impl Debug for TrustedFlatlandConfig
Source§impl Decode<TrustedFlatlandConfig, DefaultFuchsiaResourceDialect> for TrustedFlatlandConfig
impl Decode<TrustedFlatlandConfig, DefaultFuchsiaResourceDialect> for TrustedFlatlandConfig
Source§impl Default for TrustedFlatlandConfig
impl Default for TrustedFlatlandConfig
Source§fn default() -> TrustedFlatlandConfig
fn default() -> TrustedFlatlandConfig
Returns the “default value” for a type. Read more
Source§impl Encode<TrustedFlatlandConfig, DefaultFuchsiaResourceDialect> for &mut TrustedFlatlandConfig
impl Encode<TrustedFlatlandConfig, DefaultFuchsiaResourceDialect> for &mut TrustedFlatlandConfig
Source§impl PartialEq for TrustedFlatlandConfig
impl PartialEq for TrustedFlatlandConfig
Source§impl ResourceTypeMarker for TrustedFlatlandConfig
impl ResourceTypeMarker for TrustedFlatlandConfig
Source§type Borrowed<'a> = &'a mut TrustedFlatlandConfig
type Borrowed<'a> = &'a mut TrustedFlatlandConfig
The Rust type to use for encoding. This is a particular
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>
Cheaply converts from
&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 TrustedFlatlandConfig
impl TypeMarker for TrustedFlatlandConfig
Source§type Owned = TrustedFlatlandConfig
type Owned = TrustedFlatlandConfig
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
.Source§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 moreSource§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.impl Standalone<DefaultFuchsiaResourceDialect> for TrustedFlatlandConfig
impl StructuralPartialEq for TrustedFlatlandConfig
Auto Trait Implementations§
impl Freeze for TrustedFlatlandConfig
impl RefUnwindSafe for TrustedFlatlandConfig
impl Send for TrustedFlatlandConfig
impl Sync for TrustedFlatlandConfig
impl Unpin for TrustedFlatlandConfig
impl UnwindSafe for TrustedFlatlandConfig
Blanket Implementations§
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