pub struct Config {
pub format: Option<u32>,
pub buffers: usize,
}Expand description
How a sink is configured.
Fields§
§format: Option<u32>The format to scan out, or None to negotiate one the plane takes,
falling back to XRGB8888 when none of the defaults match or the planes
cannot be queried.
buffers: usizeRing depth. Three is what the buffer-age path wants: one scanning, one
in flight, one free to paint into. 0 means three.
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