Struct PutImageRequest
pub struct PutImageRequest<'input> {
pub format: ImageFormat,
pub drawable: u32,
pub gc: u32,
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: u32
§gc: u32
§width: u16
§height: u16
§dst_x: i16
§dst_y: i16
§left_pad: u8
§depth: u8
§data: Cow<'input, [u8]>
Implementations§
§impl<'input> PutImageRequest<'input>
impl<'input> PutImageRequest<'input>
pub fn serialize(self) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
pub fn serialize(self) -> ([Cow<'input, [u8]>; 3], Vec<OwnedFd>)
Serialize this request into bytes for the provided connection
pub fn into_owned(self) -> PutImageRequest<'static>
pub fn into_owned(self) -> PutImageRequest<'static>
Clone all borrowed data in this PutImageRequest.
Trait Implementations§
§impl<'input> Clone for PutImageRequest<'input>
impl<'input> Clone for PutImageRequest<'input>
§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 more§impl Debug for PutImageRequest<'_>
impl Debug for PutImageRequest<'_>
§impl<'input> Default for PutImageRequest<'input>
impl<'input> Default for PutImageRequest<'input>
§fn default() -> PutImageRequest<'input>
fn default() -> PutImageRequest<'input>
Returns the “default value” for a type. Read more
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)