pub struct Config {Show 13 fields
pub keyboard_autorepeat: bool,
pub keyboard_autorepeat_slow_interval: Duration,
pub keyboard_autorepeat_fast_interval: Duration,
pub use_spinel: bool,
pub virtcon_mode: Option<VirtconMode>,
pub view_mode: ViewMode,
pub display_rotation: DisplayRotation,
pub keymap_name: Option<String>,
pub display_resource_release_delay: Duration,
pub buffer_count: Option<usize>,
pub input: bool,
pub needs_blending: bool,
pub startup_delay: Duration,
}Expand description
Grab-bag of configuration options for Carnelian apps.
Fields§
§keyboard_autorepeat: boolWhether, when running without Scenic, this application should receive keyboard repeat events.
keyboard_autorepeat_slow_interval: DurationThe initial and maximum interval between keyboard repeat events, in milliseconds, when running without Scenic.
keyboard_autorepeat_fast_interval: DurationThe minimum interval between keyboard repeat events, in milliseconds, when running without Scenic.
use_spinel: boolWhether to try to use hardware rendering (Spinel).
virtcon_mode: Option<VirtconMode>What mode to use when acting as a virtual console.
view_mode: ViewModeWhat sort of view system to use.
display_rotation: DisplayRotationApplication option to exercise transparent rotation.
keymap_name: Option<String>Application option to select keymap. If named keymap is not found the fallback is US QWERTY.
display_resource_release_delay: DurationHow long should carnelian wait before releasing display resources when it loses ownership of the display while running directly on the display. The default value is five seconds, so that the resource will not be rapidly allocated and deallocated when switching quickly between virtcon and the regular display.
buffer_count: Option<usize>In a bringup build the display coordinator might not support multiple buffers so Carnelian might have to run with only a single buffer. This configuration option is to allow testing rendering with a single buffer even in build that supports multiple.
input: boolWhether input events are needed.
needs_blending: boolWhether output can be translucent and needs blending.
startup_delay: DurationHow long to wait before entering event loop.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more