Struct x11rb::protocol::xproto::StoreNamedColorRequest
source · pub struct StoreNamedColorRequest<'input> {
pub flags: ColorFlag,
pub cmap: u32,
pub pixel: u32,
pub name: Cow<'input, [u8]>,
}
Fields§
§flags: ColorFlag
§cmap: u32
§pixel: u32
§name: Cow<'input, [u8]>
Implementations§
source§impl<'input> StoreNamedColorRequest<'input>
impl<'input> StoreNamedColorRequest<'input>
sourcepub 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
sourcepub fn into_owned(self) -> StoreNamedColorRequest<'static>
pub fn into_owned(self) -> StoreNamedColorRequest<'static>
Clone all borrowed data in this StoreNamedColorRequest.
Trait Implementations§
source§impl<'input> Clone for StoreNamedColorRequest<'input>
impl<'input> Clone for StoreNamedColorRequest<'input>
source§fn clone(&self) -> StoreNamedColorRequest<'input>
fn clone(&self) -> StoreNamedColorRequest<'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 StoreNamedColorRequest<'_>
impl Debug for StoreNamedColorRequest<'_>
source§impl<'input> Default for StoreNamedColorRequest<'input>
impl<'input> Default for StoreNamedColorRequest<'input>
source§fn default() -> StoreNamedColorRequest<'input>
fn default() -> StoreNamedColorRequest<'input>
Returns the “default value” for a type. Read more
source§impl<'input> Request for StoreNamedColorRequest<'input>
impl<'input> Request for StoreNamedColorRequest<'input>
impl<'input> VoidRequest for StoreNamedColorRequest<'input>
Auto Trait Implementations§
impl<'input> Freeze for StoreNamedColorRequest<'input>
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§
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
)