Struct x11rb_protocol::protocol::xproto::FreeColorsRequest
source · [−]pub struct FreeColorsRequest<'input> {
pub cmap: Colormap,
pub plane_mask: u32,
pub pixels: Cow<'input, [u32]>,
}
Fields
cmap: Colormap
plane_mask: u32
pixels: Cow<'input, [u32]>
Implementations
sourceimpl<'input> FreeColorsRequest<'input>
impl<'input> FreeColorsRequest<'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) -> FreeColorsRequest<'static>
pub fn into_owned(self) -> FreeColorsRequest<'static>
Clone all borrowed data in this FreeColorsRequest.
Trait Implementations
sourceimpl<'input> Clone for FreeColorsRequest<'input>
impl<'input> Clone for FreeColorsRequest<'input>
sourcefn clone(&self) -> FreeColorsRequest<'input>
fn clone(&self) -> FreeColorsRequest<'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 FreeColorsRequest<'input>
impl<'input> Debug for FreeColorsRequest<'input>
sourceimpl<'input> Default for FreeColorsRequest<'input>
impl<'input> Default for FreeColorsRequest<'input>
sourcefn default() -> FreeColorsRequest<'input>
fn default() -> FreeColorsRequest<'input>
Returns the “default value” for a type. Read more
sourceimpl<'input> Hash for FreeColorsRequest<'input>
impl<'input> Hash for FreeColorsRequest<'input>
sourceimpl<'input> Ord for FreeColorsRequest<'input>
impl<'input> Ord for FreeColorsRequest<'input>
sourceimpl<'input> PartialEq<FreeColorsRequest<'input>> for FreeColorsRequest<'input>
impl<'input> PartialEq<FreeColorsRequest<'input>> for FreeColorsRequest<'input>
sourcefn eq(&self, other: &FreeColorsRequest<'input>) -> bool
fn eq(&self, other: &FreeColorsRequest<'input>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FreeColorsRequest<'input>) -> bool
fn ne(&self, other: &FreeColorsRequest<'input>) -> bool
This method tests for !=
.
sourceimpl<'input> PartialOrd<FreeColorsRequest<'input>> for FreeColorsRequest<'input>
impl<'input> PartialOrd<FreeColorsRequest<'input>> for FreeColorsRequest<'input>
sourcefn partial_cmp(&self, other: &FreeColorsRequest<'input>) -> Option<Ordering>
fn partial_cmp(&self, other: &FreeColorsRequest<'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 FreeColorsRequest<'input>
impl<'input> Request for FreeColorsRequest<'input>
impl<'input> Eq for FreeColorsRequest<'input>
impl<'input> StructuralEq for FreeColorsRequest<'input>
impl<'input> StructuralPartialEq for FreeColorsRequest<'input>
impl<'input> VoidRequest for FreeColorsRequest<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for FreeColorsRequest<'input>
impl<'input> Send for FreeColorsRequest<'input>
impl<'input> Sync for FreeColorsRequest<'input>
impl<'input> Unpin for FreeColorsRequest<'input>
impl<'input> UnwindSafe for FreeColorsRequest<'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