pub struct DisplayInfo;Expand description
Field names of the display_info JSON document (for reference; the guest
parses it with any JSON library):
{ "present_modes": ["fifo", "immediate"], "present_mode": "fifo", "frame_latency": 2,
"fps_cap": 0, "refresh_hz": 59.94, "fullscreen": "windowed", "backend": "wgpu",
"hdr": { "enabled": true, "metadata_supported": false,
"formats": { "Rgba16Float": ["srgb", "extended_srgb_linear"] } },
"locked": ["present_mode"] }Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnsafeUnpin for DisplayInfo
impl UnwindSafe for DisplayInfo
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