pub struct GpuParameters {
Show 19 fields pub mode: GpuMode, pub display_params: Vec<DisplayParameters>, pub __width_compat: Option<u32>, pub __height_compat: Option<u32>, pub renderer_use_egl: bool, pub renderer_use_gles: bool, pub renderer_use_glx: bool, pub renderer_use_surfaceless: bool, pub use_vulkan: Option<bool>, pub wsi: Option<GpuWsi>, pub udmabuf: bool, pub cache_path: Option<String>, pub cache_size: Option<String>, pub pci_address: Option<PciAddress>, pub pci_bar_size: u64, pub capset_mask: u64, pub external_blob: bool, pub system_blob: bool, pub allow_implicit_render_server_exec: bool,
}

Fields§

§mode: GpuMode§display_params: Vec<DisplayParameters>§__width_compat: Option<u32>§__height_compat: Option<u32>§renderer_use_egl: bool§renderer_use_gles: bool§renderer_use_glx: bool§renderer_use_surfaceless: bool§use_vulkan: Option<bool>§wsi: Option<GpuWsi>§udmabuf: bool§cache_path: Option<String>§cache_size: Option<String>§pci_address: Option<PciAddress>§pci_bar_size: u64§capset_mask: u64§external_blob: bool§system_blob: bool§allow_implicit_render_server_exec: bool

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Construct the type from a commandline value, returning an error string on failure.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.