Struct x11rb_protocol::protocol::xv::ShmPutImageRequest
source · pub struct ShmPutImageRequest {Show 17 fields
pub port: Port,
pub drawable: Drawable,
pub gc: Gcontext,
pub shmseg: Seg,
pub id: u32,
pub offset: u32,
pub src_x: i16,
pub src_y: i16,
pub src_w: u16,
pub src_h: u16,
pub drw_x: i16,
pub drw_y: i16,
pub drw_w: u16,
pub drw_h: u16,
pub width: u16,
pub height: u16,
pub send_event: u8,
}
Fields§
§port: Port
§drawable: Drawable
§gc: Gcontext
§shmseg: Seg
§id: u32
§offset: u32
§src_x: i16
§src_y: i16
§src_w: u16
§src_h: u16
§drw_x: i16
§drw_y: i16
§drw_w: u16
§drw_h: u16
§width: u16
§height: u16
§send_event: u8
Implementations§
source§impl ShmPutImageRequest
impl ShmPutImageRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
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 ShmPutImageRequest
impl Clone for ShmPutImageRequest
source§fn clone(&self) -> ShmPutImageRequest
fn clone(&self) -> ShmPutImageRequest
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 ShmPutImageRequest
impl Debug for ShmPutImageRequest
source§impl Default for ShmPutImageRequest
impl Default for ShmPutImageRequest
source§fn default() -> ShmPutImageRequest
fn default() -> ShmPutImageRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ShmPutImageRequest
impl<'de> Deserialize<'de> for ShmPutImageRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ShmPutImageRequest
impl Hash for ShmPutImageRequest
source§impl Ord for ShmPutImageRequest
impl Ord for ShmPutImageRequest
source§fn cmp(&self, other: &ShmPutImageRequest) -> Ordering
fn cmp(&self, other: &ShmPutImageRequest) -> 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 for ShmPutImageRequest
impl PartialEq for ShmPutImageRequest
source§fn eq(&self, other: &ShmPutImageRequest) -> bool
fn eq(&self, other: &ShmPutImageRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ShmPutImageRequest
impl PartialOrd for ShmPutImageRequest
source§fn partial_cmp(&self, other: &ShmPutImageRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &ShmPutImageRequest) -> 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 ShmPutImageRequest
impl Request for ShmPutImageRequest
source§impl Serialize for ShmPutImageRequest
impl Serialize for ShmPutImageRequest
impl Copy for ShmPutImageRequest
impl Eq for ShmPutImageRequest
impl StructuralPartialEq for ShmPutImageRequest
impl VoidRequest for ShmPutImageRequest
Auto Trait Implementations§
impl Freeze for ShmPutImageRequest
impl RefUnwindSafe for ShmPutImageRequest
impl Send for ShmPutImageRequest
impl Sync for ShmPutImageRequest
impl Unpin for ShmPutImageRequest
impl UnwindSafe for ShmPutImageRequest
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