pub struct BackendConfig {
pub fourcc: u32,
pub rotation: Rotation,
pub vrr: VrrPolicy,
pub restore: RestorePolicy,
pub connector_id: u32,
}Expand description
How to build a scanout backend.
Fields§
§fourcc: u32The FourCC to allocate and scan out.
rotation: RotationThe rotation the layer will be presented with, which the modifier negotiation filters against – a tiled layout a plane cannot rotate is not a candidate for a rotated layer.
vrr: VrrPolicyWhether to ask for variable refresh.
restore: RestorePolicyWhat to leave on screen at teardown.
connector_id: u32The connector to drive; 0 for the first connected one. See
ScanoutTarget::discover_connector.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more