Struct x11rb_protocol::protocol::xproto::PutImageRequest
source · pub struct PutImageRequest<'input> {
pub format: ImageFormat,
pub drawable: Drawable,
pub gc: Gcontext,
pub width: u16,
pub height: u16,
pub dst_x: i16,
pub dst_y: i16,
pub left_pad: u8,
pub depth: u8,
pub data: Cow<'input, [u8]>,
}
Fields§
§format: ImageFormat
§drawable: Drawable
§gc: Gcontext
§width: u16
§height: u16
§dst_x: i16
§dst_y: i16
§left_pad: u8
§depth: u8
§data: Cow<'input, [u8]>
Implementations§
source§impl<'input> PutImageRequest<'input>
impl<'input> PutImageRequest<'input>
sourcepub fn serialize(self) -> BufWithFds<[Cow<'input, [u8]>; 3]>
pub fn serialize(self) -> BufWithFds<[Cow<'input, [u8]>; 3]>
Serialize this request into bytes for the provided connection
sourcepub fn into_owned(self) -> PutImageRequest<'static>
pub fn into_owned(self) -> PutImageRequest<'static>
Clone all borrowed data in this PutImageRequest.
Trait Implementations§
source§impl<'input> Clone for PutImageRequest<'input>
impl<'input> Clone for PutImageRequest<'input>
source§fn clone(&self) -> PutImageRequest<'input>
fn clone(&self) -> PutImageRequest<'input>
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<'input> Default for PutImageRequest<'input>
impl<'input> Default for PutImageRequest<'input>
source§fn default() -> PutImageRequest<'input>
fn default() -> PutImageRequest<'input>
Returns the “default value” for a type. Read more
source§impl<'input> Request for PutImageRequest<'input>
impl<'input> Request for PutImageRequest<'input>
impl<'input> VoidRequest for PutImageRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for PutImageRequest<'input>
impl<'input> RefUnwindSafe for PutImageRequest<'input>
impl<'input> Send for PutImageRequest<'input>
impl<'input> Sync for PutImageRequest<'input>
impl<'input> Unpin for PutImageRequest<'input>
impl<'input> UnwindSafe for PutImageRequest<'input>
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