Struct x11rb_protocol::protocol::dri3::PixmapFromBuffersRequest
source · pub struct PixmapFromBuffersRequest {Show 16 fields
pub pixmap: Pixmap,
pub window: Window,
pub width: u16,
pub height: u16,
pub stride0: u32,
pub offset0: u32,
pub stride1: u32,
pub offset1: u32,
pub stride2: u32,
pub offset2: u32,
pub stride3: u32,
pub offset3: u32,
pub depth: u8,
pub bpp: u8,
pub modifier: u64,
pub buffers: Vec<RawFdContainer>,
}
Fields§
§pixmap: Pixmap
§window: Window
§width: u16
§height: u16
§stride0: u32
§offset0: u32
§stride1: u32
§offset1: u32
§stride2: u32
§offset2: u32
§stride3: u32
§offset3: u32
§depth: u8
§bpp: u8
§modifier: u64
§buffers: Vec<RawFdContainer>
Implementations§
source§impl PixmapFromBuffersRequest
impl PixmapFromBuffersRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<PiecewiseBuf<'static>>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request_fd(
header: RequestHeader,
value: &[u8],
fds: &mut Vec<RawFdContainer>
) -> Result<Self, ParseError>
pub fn try_parse_request_fd( header: RequestHeader, value: &[u8], fds: &mut Vec<RawFdContainer> ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Debug for PixmapFromBuffersRequest
impl Debug for PixmapFromBuffersRequest
source§impl PartialEq<PixmapFromBuffersRequest> for PixmapFromBuffersRequest
impl PartialEq<PixmapFromBuffersRequest> for PixmapFromBuffersRequest
source§fn eq(&self, other: &PixmapFromBuffersRequest) -> bool
fn eq(&self, other: &PixmapFromBuffersRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Request for PixmapFromBuffersRequest
impl Request for PixmapFromBuffersRequest
impl Eq for PixmapFromBuffersRequest
impl StructuralEq for PixmapFromBuffersRequest
impl StructuralPartialEq for PixmapFromBuffersRequest
impl VoidRequest for PixmapFromBuffersRequest
Auto Trait Implementations§
impl RefUnwindSafe for PixmapFromBuffersRequest
impl Send for PixmapFromBuffersRequest
impl Sync for PixmapFromBuffersRequest
impl Unpin for PixmapFromBuffersRequest
impl UnwindSafe for PixmapFromBuffersRequest
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