Struct x11rb_protocol::protocol::dri3::PixmapFromBufferRequest
source · pub struct PixmapFromBufferRequest {
pub pixmap: Pixmap,
pub drawable: Drawable,
pub size: u32,
pub width: u16,
pub height: u16,
pub stride: u16,
pub depth: u8,
pub bpp: u8,
pub pixmap_fd: RawFdContainer,
}
Fields§
§pixmap: Pixmap
§drawable: Drawable
§size: u32
§width: u16
§height: u16
§stride: u16
§depth: u8
§bpp: u8
§pixmap_fd: RawFdContainer
Implementations§
source§impl PixmapFromBufferRequest
impl PixmapFromBufferRequest
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 PixmapFromBufferRequest
impl Debug for PixmapFromBufferRequest
source§impl PartialEq<PixmapFromBufferRequest> for PixmapFromBufferRequest
impl PartialEq<PixmapFromBufferRequest> for PixmapFromBufferRequest
source§fn eq(&self, other: &PixmapFromBufferRequest) -> bool
fn eq(&self, other: &PixmapFromBufferRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Request for PixmapFromBufferRequest
impl Request for PixmapFromBufferRequest
impl Eq for PixmapFromBufferRequest
impl StructuralEq for PixmapFromBufferRequest
impl StructuralPartialEq for PixmapFromBufferRequest
impl VoidRequest for PixmapFromBufferRequest
Auto Trait Implementations§
impl RefUnwindSafe for PixmapFromBufferRequest
impl Send for PixmapFromBufferRequest
impl Sync for PixmapFromBufferRequest
impl Unpin for PixmapFromBufferRequest
impl UnwindSafe for PixmapFromBufferRequest
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