pub struct BufferInfo {
pub x: u32,
pub y: u32,
pub width: u32,
pub height: u32,
pub length: u32,
pub compression: u8,
pub compressed_length: u32,
}Expand description
Pixel rectangle announced by SET_BUFFER; the target of a streaming read.
Fields§
§x: u32X position of the rectangle inside the framebuffer.
y: u32Y position of the rectangle.
width: u32Pixel width of the rectangle.
height: u32Pixel height of the rectangle.
length: u32Uncompressed payload size in bytes.
compression: u8GUD_COMPRESSION_*. This driver advertises no compression so it is 0.
compressed_length: u32Bytes actually sent on the bulk endpoint when compression != 0.
Implementations§
Source§impl BufferInfo
impl BufferInfo
Sourcepub fn transfer_size(&self) -> u32
pub fn transfer_size(&self) -> u32
Number of bytes the host will send on the bulk OUT endpoint.
Trait Implementations§
Source§impl Clone for BufferInfo
impl Clone for BufferInfo
Source§fn clone(&self) -> BufferInfo
fn clone(&self) -> BufferInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BufferInfo
Source§impl Debug for BufferInfo
impl Debug for BufferInfo
Auto Trait Implementations§
impl Freeze for BufferInfo
impl RefUnwindSafe for BufferInfo
impl Send for BufferInfo
impl Sync for BufferInfo
impl Unpin for BufferInfo
impl UnsafeUnpin for BufferInfo
impl UnwindSafe for BufferInfo
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