pub struct MockCommit {
pub seq: u32,
pub slot: u8,
pub dirty: Vec<Rect>,
pub full: bool,
pub geometry: Geometry,
pub model: Model,
pub region: Vec<u8>,
}Expand description
One commit as the host saw it.
Fields§
§seq: u32The header sequence number the region carried.
slot: u8§dirty: Vec<Rect>The rectangles the plugin sent.
full: boolThe host treats it as fully dirty (the first after an attach).
geometry: Geometry§model: Model§region: Vec<u8>The whole region (header and both slots) at commit time.
Implementations§
Source§impl MockCommit
impl MockCommit
Sourcepub fn slot_bytes(&self) -> &[u8] ⓘ
pub fn slot_bytes(&self) -> &[u8] ⓘ
The committed slot’s bytes.
Trait Implementations§
Source§impl Clone for MockCommit
impl Clone for MockCommit
Source§impl Debug for MockCommit
impl Debug for MockCommit
impl Eq for MockCommit
Source§impl PartialEq for MockCommit
impl PartialEq for MockCommit
impl StructuralPartialEq for MockCommit
Auto Trait Implementations§
impl Freeze for MockCommit
impl RefUnwindSafe for MockCommit
impl Send for MockCommit
impl Sync for MockCommit
impl Unpin for MockCommit
impl UnsafeUnpin for MockCommit
impl UnwindSafe for MockCommit
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