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