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
sourceimpl<'input> PutImageRequest<'input>
impl<'input> PutImageRequest<'input>
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'input>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'input>>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<Self, ParseError>
pub fn try_parse_request(
header: RequestHeader,
value: &'input [u8]
) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
sourcepub fn into_owned(self) -> PutImageRequest<'static>
pub fn into_owned(self) -> PutImageRequest<'static>
Clone all borrowed data in this PutImageRequest.
Trait Implementations
sourceimpl<'input> Clone for PutImageRequest<'input>
impl<'input> Clone for PutImageRequest<'input>
sourcefn clone(&self) -> PutImageRequest<'input>
fn clone(&self) -> PutImageRequest<'input>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'input> Debug for PutImageRequest<'input>
impl<'input> Debug for PutImageRequest<'input>
sourceimpl<'input> Default for PutImageRequest<'input>
impl<'input> Default for PutImageRequest<'input>
sourcefn default() -> PutImageRequest<'input>
fn default() -> PutImageRequest<'input>
Returns the “default value” for a type. Read more
sourceimpl<'input> Hash for PutImageRequest<'input>
impl<'input> Hash for PutImageRequest<'input>
sourceimpl<'input> Ord for PutImageRequest<'input>
impl<'input> Ord for PutImageRequest<'input>
sourceimpl<'input> PartialEq<PutImageRequest<'input>> for PutImageRequest<'input>
impl<'input> PartialEq<PutImageRequest<'input>> for PutImageRequest<'input>
sourcefn eq(&self, other: &PutImageRequest<'input>) -> bool
fn eq(&self, other: &PutImageRequest<'input>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutImageRequest<'input>) -> bool
fn ne(&self, other: &PutImageRequest<'input>) -> bool
This method tests for !=
.
sourceimpl<'input> PartialOrd<PutImageRequest<'input>> for PutImageRequest<'input>
impl<'input> PartialOrd<PutImageRequest<'input>> for PutImageRequest<'input>
sourcefn partial_cmp(&self, other: &PutImageRequest<'input>) -> Option<Ordering>
fn partial_cmp(&self, other: &PutImageRequest<'input>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<'input> Request for PutImageRequest<'input>
impl<'input> Request for PutImageRequest<'input>
impl<'input> Eq for PutImageRequest<'input>
impl<'input> StructuralEq for PutImageRequest<'input>
impl<'input> StructuralPartialEq for PutImageRequest<'input>
impl<'input> VoidRequest for PutImageRequest<'input>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more