Struct x11rb_protocol::protocol::shm::PutImageRequest
source · pub struct PutImageRequest {}
Fields§
§drawable: Drawable
§gc: Gcontext
§total_width: u16
§total_height: u16
§src_x: u16
§src_y: u16
§src_width: u16
§src_height: u16
§dst_x: i16
§dst_y: i16
§depth: u8
§format: u8
§send_event: bool
§shmseg: Seg
§offset: u32
Implementations§
source§impl PutImageRequest
impl PutImageRequest
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(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Clone for PutImageRequest
impl Clone for PutImageRequest
source§fn clone(&self) -> PutImageRequest
fn clone(&self) -> PutImageRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PutImageRequest
impl Debug for PutImageRequest
source§impl Default for PutImageRequest
impl Default for PutImageRequest
source§fn default() -> PutImageRequest
fn default() -> PutImageRequest
Returns the “default value” for a type. Read more
source§impl Hash for PutImageRequest
impl Hash for PutImageRequest
source§impl Ord for PutImageRequest
impl Ord for PutImageRequest
source§fn cmp(&self, other: &PutImageRequest) -> Ordering
fn cmp(&self, other: &PutImageRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<PutImageRequest> for PutImageRequest
impl PartialEq<PutImageRequest> for PutImageRequest
source§fn eq(&self, other: &PutImageRequest) -> bool
fn eq(&self, other: &PutImageRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PutImageRequest> for PutImageRequest
impl PartialOrd<PutImageRequest> for PutImageRequest
source§fn partial_cmp(&self, other: &PutImageRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &PutImageRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Request for PutImageRequest
impl Request for PutImageRequest
impl Copy for PutImageRequest
impl Eq for PutImageRequest
impl StructuralEq for PutImageRequest
impl StructuralPartialEq for PutImageRequest
impl VoidRequest for PutImageRequest
Auto Trait Implementations§
impl RefUnwindSafe for PutImageRequest
impl Send for PutImageRequest
impl Sync for PutImageRequest
impl Unpin for PutImageRequest
impl UnwindSafe for PutImageRequest
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